/****************************************************************************************** 
 *	Chili DirectX Framework Version 12.04.24											  *	
 *	Game.cpp																			  *
 *	Copyright 2012 PlanetChili.net														  *
 *																						  *
 *	This file is part of The Chili DirectX Framework.									  *
 *																						  *
 *	The Chili DirectX Framework is free software: you can redistribute it and/or modify	  *
 *	it under the terms of the GNU General Public License as published by				  *
 *	the Free Software Foundation, either version 3 of the License, or					  *
 *	(at your option) any later version.													  *
 *																						  *
 *	The Chili DirectX Framework is distributed in the hope that it will be useful,		  *
 *	but WITHOUT ANY WARRANTY; without even the implied warranty of						  *
 *	MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the						  *
 *	GNU General Public License for more details.										  *
 *																						  *
 *	You should have received a copy of the GNU General Public License					  *
 *	along with The Chili DirectX Framework.  If not, see <http://www.gnu.org/licenses/>.  *
 ******************************************************************************************/
#include "Game.h"
#include <iostream>
Game::Game( HWND hWnd,const KeyboardServer& kServer,const MouseServer& mServer )
:	gfx( hWnd ),
	audio( hWnd ),
	kbd( kServer ),
	mouse( mServer ),
	selectiondone(true),//change to false toachieve the full game
	MapWidth(-1),
	MapHeight(-1),
	PlayerX(0),
	PlayerY(0),
	PlayerHealth(100),
	noOfPlatform(0),
	velocityX(0),
	velocityY(0),
	playerJumping(false),
	playerMoving(false),
	SPlatform(-1)//initialise to no platform
{
	hwnd= hWnd;//copy the handle dunno if need this
	
	 hdc = GetDC(hWnd);
	selectedchar = RAIN;//0 is REM
	charname[0] = "RemingTon";
	charname[1] = "Rainey";
	charname[2] =  "Beezel"; 	//initialise sound
	PlayerDirection = LEFT;
	
	speedofcharacter[0] = 4;//remington
	speedofcharacter[1] = 6;//rainey speed
	speedofcharacter[2] = 5;//beezel speed

	gravity = 0.0981;//set gravity speed
	gravityc = gravity * 1000;
	friction = 0.075;//set x and y friction
	frictionc = friction *1000;
	LoadMap(0);//comment out this later
	charSpeed = speedofcharacter[selectedchar];//comment out this later
	//lose = audio.CreateSound( "lose.wav" ); 
}
Game::~Game()
{
	delete []pPlatform;
	ReleaseDC(hwnd,hdc);
}
void Game::DrawM1L(int x ,int y)
{
gfx.PutPixel( 15 + x,2 + y,23,1,22 );
gfx.PutPixel( 16 + x,2 + y,23,1,38 );
gfx.PutPixel( 17 + x,2 + y,23,1,38 );
gfx.PutPixel( 18 + x,2 + y,24,1,51 );
gfx.PutPixel( 19 + x,2 + y,24,1,51 );
gfx.PutPixel( 20 + x,2 + y,23,1,38 );
gfx.PutPixel( 21 + x,2 + y,6,2,38 );
gfx.PutPixel( 22 + x,2 + y,6,2,22 );
gfx.PutPixel( 23 + x,2 + y,6,2,22 );
gfx.PutPixel( 24 + x,2 + y,23,1,22 );
gfx.PutPixel( 25 + x,2 + y,23,1,22 );
gfx.PutPixel( 26 + x,2 + y,36,1,2 );
gfx.PutPixel( 13 + x,3 + y,23,1,3 );
gfx.PutPixel( 14 + x,3 + y,23,1,22 );
gfx.PutPixel( 15 + x,3 + y,192,168,194 );
gfx.PutPixel( 16 + x,3 + y,196,167,217 );
gfx.PutPixel( 17 + x,3 + y,197,180,232 );
gfx.PutPixel( 18 + x,3 + y,199,167,232 );
gfx.PutPixel( 19 + x,3 + y,185,168,218 );
gfx.PutPixel( 20 + x,3 + y,186,169,229 );
gfx.PutPixel( 21 + x,3 + y,172,161,193 );
gfx.PutPixel( 22 + x,3 + y,151,147,164 );
gfx.PutPixel( 23 + x,3 + y,133,131,141 );
gfx.PutPixel( 24 + x,3 + y,135,119,152 );
gfx.PutPixel( 25 + x,3 + y,161,134,153 );
gfx.PutPixel( 26 + x,3 + y,23,1,3 );
gfx.PutPixel( 12 + x,4 + y,23,1,22 );
gfx.PutPixel( 13 + x,4 + y,197,180,232 );
gfx.PutPixel( 14 + x,4 + y,186,169,229 );
gfx.PutPixel( 15 + x,4 + y,183,169,247 );
gfx.PutPixel( 16 + x,4 + y,169,149,248 );
gfx.PutPixel( 17 + x,4 + y,153,133,230 );
gfx.PutPixel( 18 + x,4 + y,135,117,215 );
gfx.PutPixel( 19 + x,4 + y,133,119,200 );
gfx.PutPixel( 20 + x,4 + y,135,130,184 );
gfx.PutPixel( 21 + x,4 + y,72,70,105 );
gfx.PutPixel( 22 + x,4 + y,72,71,90 );
gfx.PutPixel( 23 + x,4 + y,72,71,90 );
gfx.PutPixel( 24 + x,4 + y,23,1,22 );
gfx.PutPixel( 25 + x,4 + y,23,1,3 );
gfx.PutPixel( 11 + x,5 + y,23,1,3 );
gfx.PutPixel( 12 + x,5 + y,196,167,217 );
gfx.PutPixel( 13 + x,5 + y,186,169,229 );
gfx.PutPixel( 14 + x,5 + y,183,169,247 );
gfx.PutPixel( 15 + x,5 + y,146,124,224 );
gfx.PutPixel( 16 + x,5 + y,135,117,215 );
gfx.PutPixel( 17 + x,5 + y,135,117,215 );
gfx.PutPixel( 18 + x,5 + y,135,117,215 );
gfx.PutPixel( 19 + x,5 + y,72,60,131 );
gfx.PutPixel( 20 + x,5 + y,73,69,133 );
gfx.PutPixel( 21 + x,5 + y,85,70,121 );
gfx.PutPixel( 22 + x,5 + y,36,59,68 );
gfx.PutPixel( 23 + x,5 + y,55,54,75 );           
gfx.PutPixel( 10 + x,6 + y,24,1,51 );
gfx.PutPixel( 11 + x,6 + y,183,169,247 );
gfx.PutPixel( 12 + x,6 + y,182,152,249 );
gfx.PutPixel( 13 + x,6 + y,153,133,230 );
gfx.PutPixel( 14 + x,6 + y,127,111,209 );
gfx.PutPixel( 15 + x,6 + y,123,116,213 );
gfx.PutPixel( 16 + x,6 + y,123,120,196 );
gfx.PutPixel( 17 + x,6 + y,72,60,131 );
gfx.PutPixel( 18 + x,6 + y,72,69,118 );
gfx.PutPixel( 19 + x,6 + y,72,69,118 );
gfx.PutPixel( 20 + x,6 + y,44,42,86 );
gfx.PutPixel( 21 + x,6 + y,44,42,86 );
gfx.PutPixel( 22 + x,6 + y,73,69,133 );
gfx.PutPixel( 23 + x,6 + y,133,119,200 );
gfx.PutPixel( 24 + x,6 + y,6,2,22 );  gfx.PutPixel( 28 + x,6 + y,23,1,38 );
gfx.PutPixel( 29 + x,6 + y,24,1,51 );        gfx.PutPixel( 9 + x,7 + y,23,1,3 );
gfx.PutPixel( 10 + x,7 + y,192,168,194 );
gfx.PutPixel( 11 + x,7 + y,162,132,203 );
gfx.PutPixel( 12 + x,7 + y,153,133,230 );
gfx.PutPixel( 13 + x,7 + y,127,111,209 );
gfx.PutPixel( 14 + x,7 + y,127,111,209 );
gfx.PutPixel( 15 + x,7 + y,74,64,160 );
gfx.PutPixel( 16 + x,7 + y,71,67,148 );
gfx.PutPixel( 17 + x,7 + y,63,76,129 );
gfx.PutPixel( 18 + x,7 + y,55,50,120 );
gfx.PutPixel( 19 + x,7 + y,37,59,82 );
gfx.PutPixel( 20 + x,7 + y,81,82,128 );
gfx.PutPixel( 21 + x,7 + y,72,69,118 );
gfx.PutPixel( 22 + x,7 + y,73,69,133 );
gfx.PutPixel( 23 + x,7 + y,72,69,118 );
gfx.PutPixel( 24 + x,7 + y,125,122,148 );
gfx.PutPixel( 25 + x,7 + y,6,2,22 ); gfx.PutPixel( 27 + x,7 + y,23,1,3 );
gfx.PutPixel( 28 + x,7 + y,196,167,217 );
gfx.PutPixel( 29 + x,7 + y,211,177,227 );
gfx.PutPixel( 30 + x,7 + y,33,1,22 );       
gfx.PutPixel( 9 + x,8 + y,33,1,22 );
gfx.PutPixel( 10 + x,8 + y,135,119,152 );
gfx.PutPixel( 11 + x,8 + y,133,120,168 );
gfx.PutPixel( 12 + x,8 + y,122,117,184 );
gfx.PutPixel( 13 + x,8 + y,123,120,196 );
gfx.PutPixel( 14 + x,8 + y,71,67,148 );
gfx.PutPixel( 15 + x,8 + y,71,67,148 );
gfx.PutPixel( 16 + x,8 + y,42,45,105 );
gfx.PutPixel( 17 + x,8 + y,52,51,103 );
gfx.PutPixel( 18 + x,8 + y,72,70,105 );
gfx.PutPixel( 19 + x,8 + y,55,53,88 );
gfx.PutPixel( 20 + x,8 + y,57,44,106 );
gfx.PutPixel( 21 + x,8 + y,57,44,106 );
gfx.PutPixel( 22 + x,8 + y,60,41,119 );
gfx.PutPixel( 23 + x,8 + y,84,60,151 );
gfx.PutPixel( 24 + x,8 + y,132,131,172 );
gfx.PutPixel( 25 + x,8 + y,6,3,5 ); gfx.PutPixel( 27 + x,8 + y,6,3,5 );
gfx.PutPixel( 28 + x,8 + y,199,167,232 );
gfx.PutPixel( 29 + x,8 + y,199,167,232 );
gfx.PutPixel( 30 + x,8 + y,24,1,51 );        gfx.PutPixel( 10 + x,9 + y,23,1,22 );
gfx.PutPixel( 11 + x,9 + y,133,117,184 );
gfx.PutPixel( 12 + x,9 + y,133,108,180 );
gfx.PutPixel( 13 + x,9 + y,69,61,144 );
gfx.PutPixel( 14 + x,9 + y,71,67,148 );
gfx.PutPixel( 15 + x,9 + y,3,1,74 );
gfx.PutPixel( 16 + x,9 + y,42,45,105 );
gfx.PutPixel( 17 + x,9 + y,27,33,81 );
gfx.PutPixel( 18 + x,9 + y,6,2,38 );
gfx.PutPixel( 19 + x,9 + y,169,167,216 );
gfx.PutPixel( 20 + x,9 + y,185,168,218 );
gfx.PutPixel( 21 + x,9 + y,185,177,232 );
gfx.PutPixel( 22 + x,9 + y,133,119,200 );
gfx.PutPixel( 23 + x,9 + y,60,41,119 );
gfx.PutPixel( 24 + x,9 + y,124,119,166 );
gfx.PutPixel( 25 + x,9 + y,6,2,22 ); gfx.PutPixel( 27 + x,9 + y,23,1,3 );
gfx.PutPixel( 28 + x,9 + y,68,40,102 );
gfx.PutPixel( 29 + x,9 + y,199,167,232 );
gfx.PutPixel( 30 + x,9 + y,211,177,227 );
gfx.PutPixel( 31 + x,9 + y,36,1,2 );        gfx.PutPixel( 11 + x,10 + y,6,3,5 );
gfx.PutPixel( 12 + x,10 + y,85,70,121 );
gfx.PutPixel( 13 + x,10 + y,83,80,147 );
gfx.PutPixel( 14 + x,10 + y,3,1,74 );
gfx.PutPixel( 15 + x,10 + y,16,56,128 );
gfx.PutPixel( 16 + x,10 + y,34,77,119 );
gfx.PutPixel( 17 + x,10 + y,12,58,102 );
gfx.PutPixel( 18 + x,10 + y,3,1,74 );
gfx.PutPixel( 19 + x,10 + y,156,141,210 );
gfx.PutPixel( 20 + x,10 + y,183,169,247 );
gfx.PutPixel( 21 + x,10 + y,195,155,249 );
gfx.PutPixel( 22 + x,10 + y,183,169,247 );
gfx.PutPixel( 23 + x,10 + y,133,117,184 );
gfx.PutPixel( 24 + x,10 + y,3,0,54 );
gfx.PutPixel( 25 + x,10 + y,56,43,85 );
gfx.PutPixel( 26 + x,10 + y,6,2,22 );
gfx.PutPixel( 27 + x,10 + y,135,119,152 );
gfx.PutPixel( 28 + x,10 + y,199,167,232 );
gfx.PutPixel( 29 + x,10 + y,68,40,102 );
gfx.PutPixel( 30 + x,10 + y,185,177,232 );
gfx.PutPixel( 31 + x,10 + y,6,2,38 );        
gfx.PutPixel( 12 + x,11 + y,6,2,38 );
gfx.PutPixel( 13 + x,11 + y,3,1,74 );
gfx.PutPixel( 14 + x,11 + y,37,56,132 );
gfx.PutPixel( 15 + x,11 + y,96,136,221 );
gfx.PutPixel( 16 + x,11 + y,28,76,124 );
gfx.PutPixel( 17 + x,11 + y,12,58,102 );
gfx.PutPixel( 18 + x,11 + y,3,0,54 );
gfx.PutPixel( 19 + x,11 + y,133,117,184 );
gfx.PutPixel( 20 + x,11 + y,164,135,215 );
gfx.PutPixel( 21 + x,11 + y,182,152,249 );
gfx.PutPixel( 22 + x,11 + y,136,131,198 );
gfx.PutPixel( 23 + x,11 + y,3,0,54 );
gfx.PutPixel( 24 + x,11 + y,72,69,118 );
gfx.PutPixel( 25 + x,11 + y,132,131,172 );
gfx.PutPixel( 26 + x,11 + y,56,43,85 );
gfx.PutPixel( 27 + x,11 + y,135,119,152 );
gfx.PutPixel( 28 + x,11 + y,196,167,217 );
gfx.PutPixel( 29 + x,11 + y,68,40,102 );
gfx.PutPixel( 30 + x,11 + y,133,120,168 );
gfx.PutPixel( 31 + x,11 + y,197,180,232 );
gfx.PutPixel( 32 + x,11 + y,36,1,2 );        
gfx.PutPixel( 13 + x,12 + y,23,1,3 );
gfx.PutPixel( 14 + x,12 + y,129,130,153 );
gfx.PutPixel( 15 + x,12 + y,79,81,120 );
gfx.PutPixel( 16 + x,12 + y,44,42,86 );
gfx.PutPixel( 17 + x,12 + y,3,0,54 );
gfx.PutPixel( 18 + x,12 + y,150,119,196 );
gfx.PutPixel( 19 + x,12 + y,133,106,195 );
gfx.PutPixel( 20 + x,12 + y,123,120,196 );
gfx.PutPixel( 21 + x,12 + y,72,69,118 );
gfx.PutPixel( 22 + x,12 + y,6,2,38 );
gfx.PutPixel( 23 + x,12 + y,55,53,88 );
gfx.PutPixel( 24 + x,12 + y,56,43,85 );
gfx.PutPixel( 25 + x,12 + y,55,53,88 );
gfx.PutPixel( 26 + x,12 + y,197,183,219 );
gfx.PutPixel( 27 + x,12 + y,55,53,88 );
gfx.PutPixel( 28 + x,12 + y,199,167,232 );
gfx.PutPixel( 29 + x,12 + y,199,167,232 );
gfx.PutPixel( 30 + x,12 + y,68,40,102 );
gfx.PutPixel( 31 + x,12 + y,199,167,232 );
gfx.PutPixel( 32 + x,12 + y,23,1,22 );         gfx.PutPixel( 14 + x,13 + y,6,2,22 );
gfx.PutPixel( 15 + x,13 + y,151,150,190 );
gfx.PutPixel( 16 + x,13 + y,174,186,228 );
gfx.PutPixel( 17 + x,13 + y,3,0,54 );
gfx.PutPixel( 18 + x,13 + y,133,119,200 );
gfx.PutPixel( 19 + x,13 + y,133,119,200 );
gfx.PutPixel( 20 + x,13 + y,87,70,132 );
gfx.PutPixel( 21 + x,13 + y,3,0,54 );
gfx.PutPixel( 22 + x,13 + y,133,120,168 );
gfx.PutPixel( 23 + x,13 + y,185,178,216 );
gfx.PutPixel( 24 + x,13 + y,185,168,218 );
gfx.PutPixel( 25 + x,13 + y,133,117,184 );
gfx.PutPixel( 26 + x,13 + y,56,43,85 );
gfx.PutPixel( 27 + x,13 + y,135,119,152 );
gfx.PutPixel( 28 + x,13 + y,68,40,102 );
gfx.PutPixel( 29 + x,13 + y,199,167,232 );
gfx.PutPixel( 30 + x,13 + y,68,40,102 );
gfx.PutPixel( 31 + x,13 + y,186,169,229 );
gfx.PutPixel( 32 + x,13 + y,23,1,3 );         gfx.PutPixel( 14 + x,14 + y,6,3,5 );
gfx.PutPixel( 15 + x,14 + y,169,146,166 );
gfx.PutPixel( 16 + x,14 + y,67,39,77 );
gfx.PutPixel( 17 + x,14 + y,149,120,169 );
gfx.PutPixel( 18 + x,14 + y,154,124,184 );
gfx.PutPixel( 19 + x,14 + y,85,70,121 );
gfx.PutPixel( 20 + x,14 + y,3,0,54 );
gfx.PutPixel( 21 + x,14 + y,123,120,196 );
gfx.PutPixel( 22 + x,14 + y,185,178,216 );
gfx.PutPixel( 23 + x,14 + y,249,225,248 );
gfx.PutPixel( 24 + x,14 + y,249,225,248 );
gfx.PutPixel( 25 + x,14 + y,187,165,202 );
gfx.PutPixel( 26 + x,14 + y,126,129,158 );
gfx.PutPixel( 27 + x,14 + y,55,54,75 );
gfx.PutPixel( 28 + x,14 + y,55,53,88 );
gfx.PutPixel( 29 + x,14 + y,185,168,218 );
gfx.PutPixel( 30 + x,14 + y,199,167,232 );
gfx.PutPixel( 31 + x,14 + y,69,30,103 );
gfx.PutPixel( 32 + x,14 + y,23,1,38 );         
gfx.PutPixel( 15 + x,15 + y,69,55,75 );
gfx.PutPixel( 16 + x,15 + y,146,120,151 );
gfx.PutPixel( 17 + x,15 + y,96,68,119 );
gfx.PutPixel( 18 + x,15 + y,84,58,122 );
gfx.PutPixel( 19 + x,15 + y,3,0,54 );
gfx.PutPixel( 20 + x,15 + y,136,131,198 );
gfx.PutPixel( 21 + x,15 + y,187,178,246 );
gfx.PutPixel( 22 + x,15 + y,185,168,218 );
gfx.PutPixel( 23 + x,15 + y,249,225,248 );
gfx.PutPixel( 24 + x,15 + y,238,225,252 );
gfx.PutPixel( 25 + x,15 + y,185,177,232 );
gfx.PutPixel( 26 + x,15 + y,125,122,148 );
gfx.PutPixel( 27 + x,15 + y,55,54,75 );
gfx.PutPixel( 28 + x,15 + y,85,71,105 );
gfx.PutPixel( 29 + x,15 + y,56,43,85 );
gfx.PutPixel( 30 + x,15 + y,199,167,232 );
gfx.PutPixel( 31 + x,15 + y,199,167,232 );
gfx.PutPixel( 32 + x,15 + y,197,180,232 );
gfx.PutPixel( 33 + x,15 + y,6,3,5 );         gfx.PutPixel( 15 + x,16 + y,36,1,2 );
gfx.PutPixel( 16 + x,16 + y,6,3,5 );
gfx.PutPixel( 17 + x,16 + y,6,3,5 );
gfx.PutPixel( 18 + x,16 + y,23,1,38 );
gfx.PutPixel( 19 + x,16 + y,55,53,88 );
gfx.PutPixel( 20 + x,16 + y,120,136,172 );
gfx.PutPixel( 21 + x,16 + y,124,128,188 );
gfx.PutPixel( 22 + x,16 + y,183,169,247 );
gfx.PutPixel( 23 + x,16 + y,167,165,247 );
gfx.PutPixel( 24 + x,16 + y,182,152,249 );
gfx.PutPixel( 25 + x,16 + y,132,108,213 );
gfx.PutPixel( 26 + x,16 + y,122,117,184 );
gfx.PutPixel( 27 + x,16 + y,52,51,103 );
gfx.PutPixel( 28 + x,16 + y,132,131,172 );
gfx.PutPixel( 29 + x,16 + y,52,51,103 );
gfx.PutPixel( 30 + x,16 + y,199,167,232 );
gfx.PutPixel( 31 + x,16 + y,196,167,217 );
gfx.PutPixel( 32 + x,16 + y,197,180,232 );
gfx.PutPixel( 33 + x,16 + y,6,2,22 );          gfx.PutPixel( 17 + x,17 + y,69,55,75 );
gfx.PutPixel( 18 + x,17 + y,72,70,105 );
gfx.PutPixel( 19 + x,17 + y,37,59,82 );
gfx.PutPixel( 20 + x,17 + y,57,71,120 );
gfx.PutPixel( 21 + x,17 + y,122,117,184 );
gfx.PutPixel( 22 + x,17 + y,122,117,184 );
gfx.PutPixel( 23 + x,17 + y,133,119,200 );
gfx.PutPixel( 24 + x,17 + y,135,117,215 );
gfx.PutPixel( 25 + x,17 + y,133,109,233 );
gfx.PutPixel( 26 + x,17 + y,71,67,148 );
gfx.PutPixel( 27 + x,17 + y,52,51,103 );
gfx.PutPixel( 28 + x,17 + y,124,119,166 );
gfx.PutPixel( 29 + x,17 + y,72,70,105 );
gfx.PutPixel( 30 + x,17 + y,80,43,110 );
gfx.PutPixel( 31 + x,17 + y,199,167,232 );
gfx.PutPixel( 32 + x,17 + y,133,120,168 );
gfx.PutPixel( 33 + x,17 + y,6,2,22 );         
gfx.PutPixel( 16 + x,18 + y,6,3,5 );
gfx.PutPixel( 17 + x,18 + y,88,87,87 );
gfx.PutPixel( 18 + x,18 + y,72,70,105 );
gfx.PutPixel( 19 + x,18 + y,55,53,88 );
gfx.PutPixel( 20 + x,18 + y,52,51,103 );
gfx.PutPixel( 21 + x,18 + y,84,58,122 );
gfx.PutPixel( 22 + x,18 + y,133,120,168 );
gfx.PutPixel( 23 + x,18 + y,133,120,168 );
gfx.PutPixel( 24 + x,18 + y,133,119,200 );
gfx.PutPixel( 25 + x,18 + y,72,60,131 );
gfx.PutPixel( 26 + x,18 + y,72,69,118 );
gfx.PutPixel( 27 + x,18 + y,52,51,103 );
gfx.PutPixel( 28 + x,18 + y,174,186,228 );
gfx.PutPixel( 29 + x,18 + y,73,69,133 );
gfx.PutPixel( 30 + x,18 + y,68,40,102 );
gfx.PutPixel( 31 + x,18 + y,199,167,232 );
gfx.PutPixel( 32 + x,18 + y,132,131,172 );
gfx.PutPixel( 33 + x,18 + y,6,2,22 );      
gfx.PutPixel( 10 + x,19 + y,6,3,5 );
gfx.PutPixel( 11 + x,19 + y,23,1,3 );  
gfx.PutPixel( 16 + x,19 + y,6,3,5 );
gfx.PutPixel( 17 + x,19 + y,133,131,141 );
gfx.PutPixel( 18 + x,19 + y,36,59,68 );
gfx.PutPixel( 19 + x,19 + y,185,178,216 );
gfx.PutPixel( 20 + x,19 + y,133,117,184 );
gfx.PutPixel( 21 + x,19 + y,68,40,102 );
gfx.PutPixel( 22 + x,19 + y,56,43,85 );
gfx.PutPixel( 23 + x,19 + y,98,62,132 );
gfx.PutPixel( 24 + x,19 + y,85,61,135 );
gfx.PutPixel( 25 + x,19 + y,72,60,131 );
gfx.PutPixel( 26 + x,19 + y,39,56,101 );
gfx.PutPixel( 27 + x,19 + y,72,69,118 );
gfx.PutPixel( 28 + x,19 + y,167,165,247 );
gfx.PutPixel( 29 + x,19 + y,124,128,188 );
gfx.PutPixel( 30 + x,19 + y,98,62,132 );
gfx.PutPixel( 31 + x,19 + y,70,35,114 );
gfx.PutPixel( 32 + x,19 + y,185,178,216 );
gfx.PutPixel( 33 + x,19 + y,6,2,22 );      gfx.PutPixel( 9 + x,20 + y,6,3,5 );
gfx.PutPixel( 10 + x,20 + y,156,166,168 );
gfx.PutPixel( 11 + x,20 + y,99,107,110 );
gfx.PutPixel( 12 + x,20 + y,23,1,22 );  gfx.PutPixel( 16 + x,20 + y,6,3,5 );
gfx.PutPixel( 17 + x,20 + y,36,59,68 );
gfx.PutPixel( 18 + x,20 + y,174,186,228 );
gfx.PutPixel( 19 + x,20 + y,230,217,250 );
gfx.PutPixel( 20 + x,20 + y,196,167,217 );
gfx.PutPixel( 21 + x,20 + y,199,167,232 );
gfx.PutPixel( 22 + x,20 + y,149,120,169 );
gfx.PutPixel( 23 + x,20 + y,56,43,85 );
gfx.PutPixel( 24 + x,20 + y,56,44,57 );
gfx.PutPixel( 25 + x,20 + y,55,54,75 );
gfx.PutPixel( 26 + x,20 + y,26,37,57 );
gfx.PutPixel( 27 + x,20 + y,55,53,88 );
gfx.PutPixel( 28 + x,20 + y,72,70,105 );
gfx.PutPixel( 29 + x,20 + y,129,130,153 );
gfx.PutPixel( 30 + x,20 + y,70,53,86 );
gfx.PutPixel( 31 + x,20 + y,66,44,89 );
gfx.PutPixel( 32 + x,20 + y,197,183,219 );
gfx.PutPixel( 33 + x,20 + y,23,1,22 );     gfx.PutPixel( 7 + x,21 + y,36,1,2 );
gfx.PutPixel( 8 + x,21 + y,23,1,3 );
gfx.PutPixel( 9 + x,21 + y,121,101,99 );
gfx.PutPixel( 10 + x,21 + y,91,96,102 );
gfx.PutPixel( 11 + x,21 + y,6,3,5 );
gfx.PutPixel( 12 + x,21 + y,33,1,22 );
gfx.PutPixel( 13 + x,21 + y,23,1,22 );
gfx.PutPixel( 14 + x,21 + y,23,1,3 );
gfx.PutPixel( 15 + x,21 + y,23,1,3 );
gfx.PutPixel( 16 + x,21 + y,70,99,89 );
gfx.PutPixel( 17 + x,21 + y,21,69,87 );
gfx.PutPixel( 18 + x,21 + y,171,185,217 );
gfx.PutPixel( 19 + x,21 + y,238,225,252 );
gfx.PutPixel( 20 + x,21 + y,249,217,250 );
gfx.PutPixel( 21 + x,21 + y,199,167,232 );
gfx.PutPixel( 22 + x,21 + y,186,169,229 );
gfx.PutPixel( 23 + x,21 + y,85,71,105 );
gfx.PutPixel( 24 + x,21 + y,55,54,75 );
gfx.PutPixel( 25 + x,21 + y,55,54,75 );
gfx.PutPixel( 26 + x,21 + y,72,70,105 );
gfx.PutPixel( 27 + x,21 + y,60,70,102 );
gfx.PutPixel( 28 + x,21 + y,55,53,88 );
gfx.PutPixel( 29 + x,21 + y,129,130,153 );
gfx.PutPixel( 30 + x,21 + y,85,65,93 );
gfx.PutPixel( 31 + x,21 + y,66,44,89 );
gfx.PutPixel( 32 + x,21 + y,6,2,22 );
gfx.PutPixel( 33 + x,21 + y,23,1,22 );    
gfx.PutPixel( 6 + x,22 + y,23,1,3 );
gfx.PutPixel( 7 + x,22 + y,168,157,154 );
gfx.PutPixel( 8 + x,22 + y,115,94,111 );
gfx.PutPixel( 9 + x,22 + y,57,52,50 );
gfx.PutPixel( 10 + x,22 + y,6,2,22 );
gfx.PutPixel( 11 + x,22 + y,124,119,166 );
gfx.PutPixel( 12 + x,22 + y,164,135,215 );
gfx.PutPixel( 13 + x,22 + y,164,135,215 );
gfx.PutPixel( 14 + x,22 + y,87,70,132 );
gfx.PutPixel( 15 + x,22 + y,36,35,75 );
gfx.PutPixel( 16 + x,22 + y,76,120,118 );
gfx.PutPixel( 17 + x,22 + y,76,120,118 );
gfx.PutPixel( 18 + x,22 + y,37,59,82 );
gfx.PutPixel( 19 + x,22 + y,185,177,232 );
gfx.PutPixel( 20 + x,22 + y,186,169,229 );
gfx.PutPixel( 21 + x,22 + y,72,60,131 );
gfx.PutPixel( 22 + x,22 + y,72,69,118 );
gfx.PutPixel( 23 + x,22 + y,39,56,101 );
gfx.PutPixel( 24 + x,22 + y,72,69,118 );
gfx.PutPixel( 25 + x,22 + y,69,55,118 );
gfx.PutPixel( 26 + x,22 + y,187,178,246 );
gfx.PutPixel( 27 + x,22 + y,122,117,184 );
gfx.PutPixel( 28 + x,22 + y,85,70,121 );
gfx.PutPixel( 29 + x,22 + y,55,53,88 );
gfx.PutPixel( 30 + x,22 + y,57,52,50 );
gfx.PutPixel( 31 + x,22 + y,23,1,3 );    
gfx.PutPixel( 4 + x,23 + y,23,1,3 );
gfx.PutPixel( 5 + x,23 + y,23,1,3 );
gfx.PutPixel( 6 + x,23 + y,181,161,163 );
gfx.PutPixel( 7 + x,23 + y,68,50,54 );
gfx.PutPixel( 8 + x,23 + y,68,50,54 );
gfx.PutPixel( 9 + x,23 + y,6,3,5 );
gfx.PutPixel( 10 + x,23 + y,72,71,90 );
gfx.PutPixel( 11 + x,23 + y,72,69,118 );
gfx.PutPixel( 12 + x,23 + y,178,140,217 );
gfx.PutPixel( 13 + x,23 + y,199,167,232 );
gfx.PutPixel( 14 + x,23 + y,187,178,246 );
gfx.PutPixel( 15 + x,23 + y,52,51,103 );
gfx.PutPixel( 16 + x,23 + y,85,125,133 );
gfx.PutPixel( 17 + x,23 + y,42,91,88 );
gfx.PutPixel( 18 + x,23 + y,72,88,105 );
gfx.PutPixel( 19 + x,23 + y,55,53,88 );
gfx.PutPixel( 20 + x,23 + y,72,60,131 );
gfx.PutPixel( 21 + x,23 + y,60,41,119 );
gfx.PutPixel( 22 + x,23 + y,39,56,101 );
gfx.PutPixel( 23 + x,23 + y,57,71,120 );
gfx.PutPixel( 24 + x,23 + y,73,69,133 );
gfx.PutPixel( 25 + x,23 + y,185,177,232 );
gfx.PutPixel( 26 + x,23 + y,133,119,200 );
gfx.PutPixel( 27 + x,23 + y,55,50,120 );
gfx.PutPixel( 28 + x,23 + y,56,43,85 );
gfx.PutPixel( 29 + x,23 + y,54,45,75 );
gfx.PutPixel( 30 + x,23 + y,6,3,5 );    gfx.PutPixel( 2 + x,24 + y,23,1,3 );
gfx.PutPixel( 3 + x,24 + y,6,3,5 );
gfx.PutPixel( 4 + x,24 + y,168,157,154 );
gfx.PutPixel( 5 + x,24 + y,47,46,41 );
gfx.PutPixel( 6 + x,24 + y,47,46,41 );
gfx.PutPixel( 7 + x,24 + y,6,3,5 );
gfx.PutPixel( 8 + x,24 + y,6,3,5 );
gfx.PutPixel( 9 + x,24 + y,6,3,5 );
gfx.PutPixel( 10 + x,24 + y,72,71,90 );
gfx.PutPixel( 11 + x,24 + y,55,53,88 );
gfx.PutPixel( 12 + x,24 + y,195,155,249 );
gfx.PutPixel( 13 + x,24 + y,184,140,232 );
gfx.PutPixel( 14 + x,24 + y,171,170,231 );
gfx.PutPixel( 15 + x,24 + y,72,69,118 );
gfx.PutPixel( 16 + x,24 + y,35,68,59 );
gfx.PutPixel( 17 + x,24 + y,70,99,89 );
gfx.PutPixel( 18 + x,24 + y,56,44,57 );
gfx.PutPixel( 19 + x,24 + y,56,43,85 );
gfx.PutPixel( 20 + x,24 + y,77,61,108 );
gfx.PutPixel( 21 + x,24 + y,133,117,184 );
gfx.PutPixel( 22 + x,24 + y,126,129,158 );
gfx.PutPixel( 23 + x,24 + y,54,45,75 );
gfx.PutPixel( 24 + x,24 + y,72,70,105 );
gfx.PutPixel( 25 + x,24 + y,133,120,168 );
gfx.PutPixel( 26 + x,24 + y,45,35,122 );
gfx.PutPixel( 27 + x,24 + y,123,116,213 );
gfx.PutPixel( 28 + x,24 + y,150,119,196 );
gfx.PutPixel( 29 + x,24 + y,84,60,151 );
gfx.PutPixel( 30 + x,24 + y,77,61,108 );
gfx.PutPixel( 31 + x,24 + y,23,1,22 );   gfx.PutPixel( 1 + x,25 + y,36,1,2 );
gfx.PutPixel( 2 + x,25 + y,121,101,99 );
gfx.PutPixel( 3 + x,25 + y,55,44,40 );
gfx.PutPixel( 4 + x,25 + y,53,51,46 );
gfx.PutPixel( 5 + x,25 + y,88,87,87 );
gfx.PutPixel( 6 + x,25 + y,57,52,50 );
gfx.PutPixel( 7 + x,25 + y,6,3,5 );
gfx.PutPixel( 8 + x,25 + y,53,51,46 );
gfx.PutPixel( 9 + x,25 + y,6,3,5 );
gfx.PutPixel( 10 + x,25 + y,69,55,75 );
gfx.PutPixel( 11 + x,25 + y,56,43,85 );
gfx.PutPixel( 12 + x,25 + y,184,140,232 );
gfx.PutPixel( 13 + x,25 + y,99,54,149 );
gfx.PutPixel( 14 + x,25 + y,123,111,187 );
gfx.PutPixel( 15 + x,25 + y,124,119,166 );
gfx.PutPixel( 16 + x,25 + y,41,68,75 );
gfx.PutPixel( 17 + x,25 + y,45,60,57 );
gfx.PutPixel( 18 + x,25 + y,146,120,151 );
gfx.PutPixel( 19 + x,25 + y,133,120,168 );
gfx.PutPixel( 20 + x,25 + y,85,61,135 );
gfx.PutPixel( 21 + x,25 + y,68,40,102 );
gfx.PutPixel( 22 + x,25 + y,55,53,88 );
gfx.PutPixel( 23 + x,25 + y,55,53,88 );
gfx.PutPixel( 24 + x,25 + y,55,53,88 );
gfx.PutPixel( 25 + x,25 + y,55,53,88 );
gfx.PutPixel( 26 + x,25 + y,133,119,200 );
gfx.PutPixel( 27 + x,25 + y,183,169,247 );
gfx.PutPixel( 28 + x,25 + y,195,167,245 );
gfx.PutPixel( 29 + x,25 + y,133,106,195 );
gfx.PutPixel( 30 + x,25 + y,85,70,121 );
gfx.PutPixel( 31 + x,25 + y,6,3,5 );  
gfx.PutPixel( 0 + x,26 + y,36,1,2 );
gfx.PutPixel( 1 + x,26 + y,121,101,99 );
gfx.PutPixel( 2 + x,26 + y,56,44,57 );
gfx.PutPixel( 3 + x,26 + y,97,85,89 );
gfx.PutPixel( 4 + x,26 + y,53,51,46 );
gfx.PutPixel( 5 + x,26 + y,55,44,40 );
gfx.PutPixel( 6 + x,26 + y,55,44,40 );
gfx.PutPixel( 7 + x,26 + y,55,44,40 );
gfx.PutPixel( 8 + x,26 + y,78,45,40 );
gfx.PutPixel( 9 + x,26 + y,23,1,3 );
gfx.PutPixel( 10 + x,26 + y,150,119,196 );
gfx.PutPixel( 11 + x,26 + y,57,44,106 );
gfx.PutPixel( 12 + x,26 + y,124,119,166 );
gfx.PutPixel( 13 + x,26 + y,125,122,148 );
gfx.PutPixel( 14 + x,26 + y,70,53,86 );
gfx.PutPixel( 15 + x,26 + y,69,55,75 );
gfx.PutPixel( 16 + x,26 + y,56,43,85 );
gfx.PutPixel( 17 + x,26 + y,77,61,108 );
gfx.PutPixel( 18 + x,26 + y,133,117,184 );
gfx.PutPixel( 19 + x,26 + y,122,117,184 );
gfx.PutPixel( 20 + x,26 + y,72,60,131 );
gfx.PutPixel( 21 + x,26 + y,73,69,133 );
gfx.PutPixel( 22 + x,26 + y,55,53,88 );
gfx.PutPixel( 23 + x,26 + y,126,129,158 );
gfx.PutPixel( 24 + x,26 + y,56,43,85 );
gfx.PutPixel( 25 + x,26 + y,57,44,106 );
gfx.PutPixel( 26 + x,26 + y,208,167,245 );
gfx.PutPixel( 27 + x,26 + y,195,155,249 );
gfx.PutPixel( 28 + x,26 + y,133,106,195 );
gfx.PutPixel( 29 + x,26 + y,150,119,196 );
gfx.PutPixel( 30 + x,26 + y,85,70,121 );
gfx.PutPixel( 31 + x,26 + y,23,1,38 );  
gfx.PutPixel( 0 + x,27 + y,36,1,2 );
gfx.PutPixel( 1 + x,27 + y,23,1,3 );
gfx.PutPixel( 2 + x,27 + y,97,85,89 );
gfx.PutPixel( 3 + x,27 + y,55,44,40 );
gfx.PutPixel( 4 + x,27 + y,55,44,40 );
gfx.PutPixel( 5 + x,27 + y,74,65,60 );
gfx.PutPixel( 6 + x,27 + y,23,1,3 );
gfx.PutPixel( 7 + x,27 + y,23,1,3 ); gfx.PutPixel( 9 + x,27 + y,23,1,3 );
gfx.PutPixel( 10 + x,27 + y,195,167,245 );
gfx.PutPixel( 11 + x,27 + y,122,117,184 );
gfx.PutPixel( 12 + x,27 + y,52,51,103 );
gfx.PutPixel( 13 + x,27 + y,55,53,88 );
gfx.PutPixel( 14 + x,27 + y,85,71,105 );
gfx.PutPixel( 15 + x,27 + y,56,44,57 );
gfx.PutPixel( 16 + x,27 + y,185,168,218 );
gfx.PutPixel( 17 + x,27 + y,133,120,168 );
gfx.PutPixel( 18 + x,27 + y,60,41,119 );
gfx.PutPixel( 19 + x,27 + y,73,69,133 );
gfx.PutPixel( 20 + x,27 + y,72,60,131 );
gfx.PutPixel( 21 + x,27 + y,73,69,133 );
gfx.PutPixel( 22 + x,27 + y,56,43,85 );
gfx.PutPixel( 23 + x,27 + y,185,178,216 );
gfx.PutPixel( 24 + x,27 + y,197,180,232 );
gfx.PutPixel( 25 + x,27 + y,186,169,229 );
gfx.PutPixel( 26 + x,27 + y,69,30,103 );
gfx.PutPixel( 27 + x,27 + y,150,119,196 );
gfx.PutPixel( 28 + x,27 + y,133,108,180 );
gfx.PutPixel( 29 + x,27 + y,98,62,132 );
gfx.PutPixel( 30 + x,27 + y,84,58,122 );
gfx.PutPixel( 31 + x,27 + y,23,1,38 );   gfx.PutPixel( 1 + x,28 + y,23,1,3 );
gfx.PutPixel( 2 + x,28 + y,53,32,31 );
gfx.PutPixel( 3 + x,28 + y,53,51,46 );
gfx.PutPixel( 4 + x,28 + y,36,1,2 );
gfx.PutPixel( 5 + x,28 + y,36,1,2 );  
gfx.PutPixel( 10 + x,28 + y,23,1,3 );
gfx.PutPixel( 11 + x,28 + y,146,131,136 );
gfx.PutPixel( 12 + x,28 + y,133,131,141 );
gfx.PutPixel( 13 + x,28 + y,72,71,90 );
gfx.PutPixel( 14 + x,28 + y,55,53,88 );
gfx.PutPixel( 15 + x,28 + y,171,170,231 );
gfx.PutPixel( 16 + x,28 + y,135,130,184 );
gfx.PutPixel( 17 + x,28 + y,123,111,187 );
gfx.PutPixel( 18 + x,28 + y,59,71,92 );
gfx.PutPixel( 19 + x,28 + y,59,71,92 );
gfx.PutPixel( 20 + x,28 + y,72,69,118 );
gfx.PutPixel( 21 + x,28 + y,52,51,103 );
gfx.PutPixel( 22 + x,28 + y,132,108,213 );
gfx.PutPixel( 23 + x,28 + y,133,119,200 );
gfx.PutPixel( 24 + x,28 + y,123,116,213 );
gfx.PutPixel( 25 + x,28 + y,167,165,247 );
gfx.PutPixel( 26 + x,28 + y,133,119,200 );
gfx.PutPixel( 27 + x,28 + y,55,50,120 );
gfx.PutPixel( 28 + x,28 + y,73,69,133 );
gfx.PutPixel( 29 + x,28 + y,57,71,120 );
gfx.PutPixel( 30 + x,28 + y,59,71,92 );
gfx.PutPixel( 31 + x,28 + y,6,3,5 );   
gfx.PutPixel( 2 + x,29 + y,36,1,2 );
gfx.PutPixel( 3 + x,29 + y,23,1,3 );    gfx.PutPixel( 11 + x,29 + y,23,1,3 );
gfx.PutPixel( 12 + x,29 + y,6,2,22 );
gfx.PutPixel( 13 + x,29 + y,6,3,5 );
gfx.PutPixel( 14 + x,29 + y,6,2,38 );
gfx.PutPixel( 15 + x,29 + y,133,120,168 );
gfx.PutPixel( 16 + x,29 + y,122,117,184 );
gfx.PutPixel( 17 + x,29 + y,85,74,148 );
gfx.PutPixel( 18 + x,29 + y,55,54,75 );
gfx.PutPixel( 19 + x,29 + y,72,70,105 );
gfx.PutPixel( 20 + x,29 + y,54,45,75 );
gfx.PutPixel( 21 + x,29 + y,52,51,103 );
gfx.PutPixel( 22 + x,29 + y,146,109,212 );
gfx.PutPixel( 23 + x,29 + y,132,108,213 );
gfx.PutPixel( 24 + x,29 + y,123,116,213 );
gfx.PutPixel( 25 + x,29 + y,132,128,222 );
gfx.PutPixel( 26 + x,29 + y,69,61,144 );
gfx.PutPixel( 27 + x,29 + y,42,45,105 );
gfx.PutPixel( 28 + x,29 + y,57,71,120 );
gfx.PutPixel( 29 + x,29 + y,60,70,102 );
gfx.PutPixel( 30 + x,29 + y,6,2,22 );          gfx.PutPixel( 14 + x,30 + y,23,1,22 );
gfx.PutPixel( 15 + x,30 + y,85,71,105 );
gfx.PutPixel( 16 + x,30 + y,72,70,105 );
gfx.PutPixel( 17 + x,30 + y,60,70,102 );
gfx.PutPixel( 18 + x,30 + y,15,78,51 );
gfx.PutPixel( 19 + x,30 + y,27,73,51 );
gfx.PutPixel( 20 + x,30 + y,39,99,89 );
gfx.PutPixel( 21 + x,30 + y,21,69,87 );
gfx.PutPixel( 22 + x,30 + y,71,67,148 );
gfx.PutPixel( 23 + x,30 + y,133,119,200 );
gfx.PutPixel( 24 + x,30 + y,123,120,196 );
gfx.PutPixel( 25 + x,30 + y,57,71,120 );
gfx.PutPixel( 26 + x,30 + y,57,71,120 );
gfx.PutPixel( 27 + x,30 + y,57,71,120 );
gfx.PutPixel( 28 + x,30 + y,43,65,102 );
gfx.PutPixel( 29 + x,30 + y,36,70,82 );
gfx.PutPixel( 30 + x,30 + y,72,88,105 );
gfx.PutPixel( 31 + x,30 + y,6,3,5 );          gfx.PutPixel( 15 + x,31 + y,6,2,22 );
gfx.PutPixel( 16 + x,31 + y,6,2,38 );
gfx.PutPixel( 17 + x,31 + y,6,2,38 );
gfx.PutPixel( 18 + x,31 + y,76,124,98 );
gfx.PutPixel( 19 + x,31 + y,75,129,106 );
gfx.PutPixel( 20 + x,31 + y,52,104,100 );
gfx.PutPixel( 21 + x,31 + y,21,69,87 );
gfx.PutPixel( 22 + x,31 + y,84,60,151 );
gfx.PutPixel( 23 + x,31 + y,71,67,148 );
gfx.PutPixel( 24 + x,31 + y,83,80,147 );
gfx.PutPixel( 25 + x,31 + y,57,71,120 );
gfx.PutPixel( 26 + x,31 + y,59,81,128 );
gfx.PutPixel( 27 + x,31 + y,39,56,101 );
gfx.PutPixel( 28 + x,31 + y,83,98,141 );
gfx.PutPixel( 29 + x,31 + y,98,114,140 );
gfx.PutPixel( 30 + x,31 + y,83,86,103 );
gfx.PutPixel( 31 + x,31 + y,6,3,5 );           gfx.PutPixel( 17 + x,32 + y,6,3,5 );
gfx.PutPixel( 18 + x,32 + y,90,120,115 );
gfx.PutPixel( 19 + x,32 + y,82,117,110 );
gfx.PutPixel( 20 + x,32 + y,82,117,110 );
gfx.PutPixel( 21 + x,32 + y,61,89,92 );
gfx.PutPixel( 22 + x,32 + y,80,46,47 );
gfx.PutPixel( 23 + x,32 + y,23,1,3 );
gfx.PutPixel( 24 + x,32 + y,23,1,3 );
gfx.PutPixel( 25 + x,32 + y,67,52,45 );
gfx.PutPixel( 26 + x,32 + y,45,60,57 );
gfx.PutPixel( 27 + x,32 + y,79,81,120 );
gfx.PutPixel( 28 + x,32 + y,56,43,85 );
gfx.PutPixel( 29 + x,32 + y,55,53,88 );
gfx.PutPixel( 30 + x,32 + y,56,43,85 );
gfx.PutPixel( 31 + x,32 + y,6,2,38 );         
gfx.PutPixel( 14 + x,33 + y,36,1,2 );
gfx.PutPixel( 15 + x,33 + y,23,1,3 );
gfx.PutPixel( 16 + x,33 + y,23,1,3 );
gfx.PutPixel( 17 + x,33 + y,57,52,50 );
gfx.PutPixel( 18 + x,33 + y,35,68,59 );
gfx.PutPixel( 19 + x,33 + y,35,68,59 );
gfx.PutPixel( 20 + x,33 + y,25,61,57 );
gfx.PutPixel( 21 + x,33 + y,41,68,75 );
gfx.PutPixel( 22 + x,33 + y,36,1,2 ); 
gfx.PutPixel( 25 + x,33 + y,23,1,3 );
gfx.PutPixel( 26 + x,33 + y,71,88,82 );
gfx.PutPixel( 27 + x,33 + y,37,59,82 );
gfx.PutPixel( 28 + x,33 + y,185,168,218 );
gfx.PutPixel( 29 + x,33 + y,185,178,216 );
gfx.PutPixel( 30 + x,33 + y,185,168,218 );
gfx.PutPixel( 31 + x,33 + y,72,70,105 );
gfx.PutPixel( 32 + x,33 + y,23,1,22 );        
gfx.PutPixel( 13 + x,34 + y,23,1,3 );
gfx.PutPixel( 14 + x,34 + y,185,177,232 );
gfx.PutPixel( 15 + x,34 + y,186,169,229 );
gfx.PutPixel( 16 + x,34 + y,85,61,135 );
gfx.PutPixel( 17 + x,34 + y,70,35,114 );
gfx.PutPixel( 18 + x,34 + y,133,117,184 );
gfx.PutPixel( 19 + x,34 + y,72,69,118 );
gfx.PutPixel( 20 + x,34 + y,72,69,118 );
gfx.PutPixel( 21 + x,34 + y,6,2,38 );  
gfx.PutPixel( 26 + x,34 + y,6,2,22 );
gfx.PutPixel( 27 + x,34 + y,171,170,231 );
gfx.PutPixel( 28 + x,34 + y,150,119,196 );
gfx.PutPixel( 29 + x,34 + y,146,109,212 );
gfx.PutPixel( 30 + x,34 + y,120,108,199 );
gfx.PutPixel( 31 + x,34 + y,133,117,184 );
gfx.PutPixel( 32 + x,34 + y,77,61,108 );
gfx.PutPixel( 33 + x,34 + y,6,3,5 );        gfx.PutPixel( 13 + x,35 + y,6,3,5 );
gfx.PutPixel( 14 + x,35 + y,185,177,232 );
gfx.PutPixel( 15 + x,35 + y,133,120,168 );
gfx.PutPixel( 16 + x,35 + y,133,117,184 );
gfx.PutPixel( 17 + x,35 + y,85,61,135 );
gfx.PutPixel( 18 + x,35 + y,69,55,118 );
gfx.PutPixel( 19 + x,35 + y,77,61,108 );
gfx.PutPixel( 20 + x,35 + y,133,117,184 );
gfx.PutPixel( 21 + x,35 + y,72,69,118 );
gfx.PutPixel( 22 + x,35 + y,36,1,2 );  gfx.PutPixel( 26 + x,35 + y,6,2,22 );
gfx.PutPixel( 27 + x,35 + y,135,130,184 );
gfx.PutPixel( 28 + x,35 + y,133,106,195 );
gfx.PutPixel( 29 + x,35 + y,146,109,212 );
gfx.PutPixel( 30 + x,35 + y,135,117,215 );
gfx.PutPixel( 31 + x,35 + y,85,61,135 );
gfx.PutPixel( 32 + x,35 + y,72,70,105 );
gfx.PutPixel( 33 + x,35 + y,23,1,22 );        gfx.PutPixel( 13 + x,36 + y,23,1,22 );
gfx.PutPixel( 14 + x,36 + y,123,120,196 );
gfx.PutPixel( 15 + x,36 + y,133,119,200 );
gfx.PutPixel( 16 + x,36 + y,133,119,200 );
gfx.PutPixel( 17 + x,36 + y,72,60,131 );
gfx.PutPixel( 18 + x,36 + y,72,69,118 );
gfx.PutPixel( 19 + x,36 + y,52,51,103 );
gfx.PutPixel( 20 + x,36 + y,73,69,133 );
gfx.PutPixel( 21 + x,36 + y,87,70,132 );
gfx.PutPixel( 22 + x,36 + y,23,1,3 );  gfx.PutPixel( 26 + x,36 + y,6,2,38 );
gfx.PutPixel( 27 + x,36 + y,135,130,184 );
gfx.PutPixel( 28 + x,36 + y,133,108,180 );
gfx.PutPixel( 29 + x,36 + y,133,108,180 );
gfx.PutPixel( 30 + x,36 + y,133,117,184 );
gfx.PutPixel( 31 + x,36 + y,84,58,122 );
gfx.PutPixel( 32 + x,36 + y,85,71,105 );
gfx.PutPixel( 33 + x,36 + y,6,2,22 ); gfx.PutPixel( 13 + x,37 + y,6,2,22 );
gfx.PutPixel( 14 + x,37 + y,85,74,148 );
gfx.PutPixel( 15 + x,37 + y,71,67,148 );
gfx.PutPixel( 16 + x,37 + y,73,69,133 );
gfx.PutPixel( 17 + x,37 + y,69,55,118 );
gfx.PutPixel( 18 + x,37 + y,73,69,133 );
gfx.PutPixel( 19 + x,37 + y,55,50,120 );
gfx.PutPixel( 20 + x,37 + y,55,50,120 );
gfx.PutPixel( 21 + x,37 + y,87,70,132 );
gfx.PutPixel( 22 + x,37 + y,23,1,3 );
gfx.PutPixel( 26 + x,37 + y,6,2,22 );
gfx.PutPixel( 27 + x,37 + y,72,69,118 );
gfx.PutPixel( 28 + x,37 + y,87,70,132 );
gfx.PutPixel( 29 + x,37 + y,73,69,133 );
gfx.PutPixel( 30 + x,37 + y,85,61,135 );
gfx.PutPixel( 31 + x,37 + y,85,70,121 );
gfx.PutPixel( 32 + x,37 + y,83,86,103 );
gfx.PutPixel( 33 + x,37 + y,6,3,5 );
gfx.PutPixel( 13 + x,38 + y,51,5,8 );
gfx.PutPixel( 14 + x,38 + y,36,1,2 );
gfx.PutPixel( 15 + x,38 + y,36,1,2 );
gfx.PutPixel( 16 + x,38 + y,23,1,3 );
gfx.PutPixel( 17 + x,38 + y,23,1,3 );
gfx.PutPixel( 18 + x,38 + y,24,16,0 );
gfx.PutPixel( 19 + x,38 + y,6,3,5 );
gfx.PutPixel( 20 + x,38 + y,23,1,3 );
gfx.PutPixel( 21 + x,38 + y,33,1,22 );
gfx.PutPixel( 27 + x,38 + y,23,1,3 );
gfx.PutPixel( 28 + x,38 + y,36,1,2 );
gfx.PutPixel( 29 + x,38 + y,36,1,2 );
gfx.PutPixel( 30 + x,38 + y,36,1,2 );
gfx.PutPixel( 31 + x,38 + y,36,1,2 );
gfx.PutPixel( 32 + x,38 + y,36,1,2 );
}

void Game::DrawM1R(int x ,int y)
{
gfx.PutPixel( 9 + x,2 + y,36,1,2 );
gfx.PutPixel( 10 + x,2 + y,23,1,22 );
gfx.PutPixel( 11 + x,2 + y,23,1,22 );
gfx.PutPixel( 12 + x,2 + y,6,2,22 );
gfx.PutPixel( 13 + x,2 + y,6,2,22 );
gfx.PutPixel( 14 + x,2 + y,6,2,38 );
gfx.PutPixel( 15 + x,2 + y,23,1,38 );
gfx.PutPixel( 16 + x,2 + y,24,1,51 );
gfx.PutPixel( 17 + x,2 + y,24,1,51 );
gfx.PutPixel( 18 + x,2 + y,23,1,38 );
gfx.PutPixel( 19 + x,2 + y,23,1,38 );
gfx.PutPixel( 20 + x,2 + y,23,1,22 );
gfx.PutPixel( 9 + x,3 + y,23,1,3 );
gfx.PutPixel( 10 + x,3 + y,161,134,153 );
gfx.PutPixel( 11 + x,3 + y,135,119,152 );
gfx.PutPixel( 12 + x,3 + y,133,131,141 );
gfx.PutPixel( 13 + x,3 + y,151,147,164 );
gfx.PutPixel( 14 + x,3 + y,172,161,193 );
gfx.PutPixel( 15 + x,3 + y,186,169,229 );
gfx.PutPixel( 16 + x,3 + y,185,168,218 );
gfx.PutPixel( 17 + x,3 + y,199,167,232 );
gfx.PutPixel( 18 + x,3 + y,197,180,232 );
gfx.PutPixel( 19 + x,3 + y,196,167,217 );
gfx.PutPixel( 20 + x,3 + y,192,168,194 );
gfx.PutPixel( 21 + x,3 + y,23,1,22 );
gfx.PutPixel( 22 + x,3 + y,23,1,3 );
gfx.PutPixel( 10 + x,4 + y,23,1,3 );
gfx.PutPixel( 11 + x,4 + y,23,1,22 );
gfx.PutPixel( 12 + x,4 + y,72,71,90 );
gfx.PutPixel( 13 + x,4 + y,72,71,90 );
gfx.PutPixel( 14 + x,4 + y,72,70,105 );
gfx.PutPixel( 15 + x,4 + y,135,130,184 );
gfx.PutPixel( 16 + x,4 + y,133,119,200 );
gfx.PutPixel( 17 + x,4 + y,135,117,215 );
gfx.PutPixel( 18 + x,4 + y,153,133,230 );
gfx.PutPixel( 19 + x,4 + y,169,149,248 );
gfx.PutPixel( 20 + x,4 + y,183,169,247 );
gfx.PutPixel( 21 + x,4 + y,186,169,229 );
gfx.PutPixel( 22 + x,4 + y,197,180,232 );
gfx.PutPixel( 23 + x,4 + y,23,1,22 );
gfx.PutPixel( 12 + x,5 + y,55,54,75 );
gfx.PutPixel( 13 + x,5 + y,36,59,68 );
gfx.PutPixel( 14 + x,5 + y,85,70,121 );
gfx.PutPixel( 15 + x,5 + y,73,69,133 );
gfx.PutPixel( 16 + x,5 + y,72,60,131 );
gfx.PutPixel( 17 + x,5 + y,135,117,215 );
gfx.PutPixel( 18 + x,5 + y,135,117,215 );
gfx.PutPixel( 19 + x,5 + y,135,117,215 );
gfx.PutPixel( 20 + x,5 + y,146,124,224 );
gfx.PutPixel( 21 + x,5 + y,183,169,247 );
gfx.PutPixel( 22 + x,5 + y,186,169,229 );
gfx.PutPixel( 23 + x,5 + y,196,167,217 );
gfx.PutPixel( 24 + x,5 + y,23,1,3 );
gfx.PutPixel( 6 + x,6 + y,24,1,51 );
gfx.PutPixel( 7 + x,6 + y,23,1,38 );
gfx.PutPixel( 11 + x,6 + y,6,2,22 );
gfx.PutPixel( 12 + x,6 + y,133,119,200 );
gfx.PutPixel( 13 + x,6 + y,73,69,133 );
gfx.PutPixel( 14 + x,6 + y,44,42,86 );
gfx.PutPixel( 15 + x,6 + y,44,42,86 );
gfx.PutPixel( 16 + x,6 + y,72,69,118 );
gfx.PutPixel( 17 + x,6 + y,72,69,118 );
gfx.PutPixel( 18 + x,6 + y,72,60,131 );
gfx.PutPixel( 19 + x,6 + y,123,120,196 );
gfx.PutPixel( 20 + x,6 + y,123,116,213 );
gfx.PutPixel( 21 + x,6 + y,127,111,209 );
gfx.PutPixel( 22 + x,6 + y,153,133,230 );
gfx.PutPixel( 23 + x,6 + y,182,152,249 );
gfx.PutPixel( 24 + x,6 + y,183,169,247 );
gfx.PutPixel( 25 + x,6 + y,24,1,51 );
gfx.PutPixel( 5 + x,7 + y,33,1,22 );
gfx.PutPixel( 6 + x,7 + y,211,177,227 );
gfx.PutPixel( 7 + x,7 + y,196,167,217 );
gfx.PutPixel( 8 + x,7 + y,23,1,3 );
gfx.PutPixel( 10 + x,7 + y,6,2,22 );
gfx.PutPixel( 11 + x,7 + y,125,122,148 );
gfx.PutPixel( 12 + x,7 + y,72,69,118 );
gfx.PutPixel( 13 + x,7 + y,73,69,133 );
gfx.PutPixel( 14 + x,7 + y,72,69,118 );
gfx.PutPixel( 15 + x,7 + y,81,82,128 );
gfx.PutPixel( 16 + x,7 + y,37,59,82 );
gfx.PutPixel( 17 + x,7 + y,55,50,120 );
gfx.PutPixel( 18 + x,7 + y,63,76,129 );
gfx.PutPixel( 19 + x,7 + y,71,67,148 );
gfx.PutPixel( 20 + x,7 + y,74,64,160 );
gfx.PutPixel( 21 + x,7 + y,127,111,209 );
gfx.PutPixel( 22 + x,7 + y,127,111,209 );
gfx.PutPixel( 23 + x,7 + y,153,133,230 );
gfx.PutPixel( 24 + x,7 + y,162,132,203 );
gfx.PutPixel( 25 + x,7 + y,192,168,194 );
gfx.PutPixel( 26 + x,7 + y,23,1,3 );
gfx.PutPixel( 5 + x,8 + y,24,1,51 );
gfx.PutPixel( 6 + x,8 + y,199,167,232 );
gfx.PutPixel( 7 + x,8 + y,199,167,232 );
gfx.PutPixel( 8 + x,8 + y,6,3,5 );
gfx.PutPixel( 10 + x,8 + y,6,3,5 );
gfx.PutPixel( 11 + x,8 + y,132,131,172 );
gfx.PutPixel( 12 + x,8 + y,84,60,151 );
gfx.PutPixel( 13 + x,8 + y,60,41,119 );
gfx.PutPixel( 14 + x,8 + y,57,44,106 );
gfx.PutPixel( 15 + x,8 + y,57,44,106 );
gfx.PutPixel( 16 + x,8 + y,55,53,88 );
gfx.PutPixel( 17 + x,8 + y,72,70,105 );
gfx.PutPixel( 18 + x,8 + y,52,51,103 );
gfx.PutPixel( 19 + x,8 + y,42,45,105 );
gfx.PutPixel( 20 + x,8 + y,71,67,148 );
gfx.PutPixel( 21 + x,8 + y,71,67,148 );
gfx.PutPixel( 22 + x,8 + y,123,120,196 );
gfx.PutPixel( 23 + x,8 + y,122,117,184 );
gfx.PutPixel( 24 + x,8 + y,133,120,168 );
gfx.PutPixel( 25 + x,8 + y,135,119,152 );
gfx.PutPixel( 26 + x,8 + y,33,1,22 );
gfx.PutPixel( 4 + x,9 + y,36,1,2 );
gfx.PutPixel( 5 + x,9 + y,211,177,227 );
gfx.PutPixel( 6 + x,9 + y,199,167,232 );
gfx.PutPixel( 7 + x,9 + y,68,40,102 );
gfx.PutPixel( 8 + x,9 + y,23,1,3 );
gfx.PutPixel( 10 + x,9 + y,6,2,22 );
gfx.PutPixel( 11 + x,9 + y,124,119,166 );
gfx.PutPixel( 12 + x,9 + y,60,41,119 );
gfx.PutPixel( 13 + x,9 + y,133,119,200 );
gfx.PutPixel( 14 + x,9 + y,185,177,232 );
gfx.PutPixel( 15 + x,9 + y,185,168,218 );
gfx.PutPixel( 16 + x,9 + y,169,167,216 );
gfx.PutPixel( 17 + x,9 + y,6,2,38 );
gfx.PutPixel( 18 + x,9 + y,27,33,81 );
gfx.PutPixel( 19 + x,9 + y,42,45,105 );
gfx.PutPixel( 20 + x,9 + y,3,1,74 );
gfx.PutPixel( 21 + x,9 + y,71,67,148 );
gfx.PutPixel( 22 + x,9 + y,69,61,144 );
gfx.PutPixel( 23 + x,9 + y,133,108,180 );
gfx.PutPixel( 24 + x,9 + y,133,117,184 );
gfx.PutPixel( 25 + x,9 + y,23,1,22 );
gfx.PutPixel( 4 + x,10 + y,6,2,38 );
gfx.PutPixel( 5 + x,10 + y,185,177,232 );
gfx.PutPixel( 6 + x,10 + y,68,40,102 );
gfx.PutPixel( 7 + x,10 + y,199,167,232 );
gfx.PutPixel( 8 + x,10 + y,135,119,152 );
gfx.PutPixel( 9 + x,10 + y,6,2,22 );
gfx.PutPixel( 10 + x,10 + y,56,43,85 );
gfx.PutPixel( 11 + x,10 + y,3,0,54 );
gfx.PutPixel( 12 + x,10 + y,133,117,184 );
gfx.PutPixel( 13 + x,10 + y,183,169,247 );
gfx.PutPixel( 14 + x,10 + y,195,155,249 );
gfx.PutPixel( 15 + x,10 + y,183,169,247 );
gfx.PutPixel( 16 + x,10 + y,156,141,210 );
gfx.PutPixel( 17 + x,10 + y,3,1,74 );
gfx.PutPixel( 18 + x,10 + y,12,58,102 );
gfx.PutPixel( 19 + x,10 + y,34,77,119 );
gfx.PutPixel( 20 + x,10 + y,16,56,128 );
gfx.PutPixel( 21 + x,10 + y,3,1,74 );
gfx.PutPixel( 22 + x,10 + y,83,80,147 );
gfx.PutPixel( 23 + x,10 + y,85,70,121 );
gfx.PutPixel( 24 + x,10 + y,6,3,5 );
gfx.PutPixel( 3 + x,11 + y,36,1,2 );
gfx.PutPixel( 4 + x,11 + y,197,180,232 );
gfx.PutPixel( 5 + x,11 + y,133,120,168 );
gfx.PutPixel( 6 + x,11 + y,68,40,102 );
gfx.PutPixel( 7 + x,11 + y,196,167,217 );
gfx.PutPixel( 8 + x,11 + y,135,119,152 );
gfx.PutPixel( 9 + x,11 + y,56,43,85 );
gfx.PutPixel( 10 + x,11 + y,132,131,172 );
gfx.PutPixel( 11 + x,11 + y,72,69,118 );
gfx.PutPixel( 12 + x,11 + y,3,0,54 );
gfx.PutPixel( 13 + x,11 + y,136,131,198 );
gfx.PutPixel( 14 + x,11 + y,182,152,249 );
gfx.PutPixel( 15 + x,11 + y,164,135,215 );
gfx.PutPixel( 16 + x,11 + y,133,117,184 );
gfx.PutPixel( 17 + x,11 + y,3,0,54 );
gfx.PutPixel( 18 + x,11 + y,12,58,102 );
gfx.PutPixel( 19 + x,11 + y,28,76,124 );
gfx.PutPixel( 20 + x,11 + y,96,136,221 );
gfx.PutPixel( 21 + x,11 + y,37,56,132 );
gfx.PutPixel( 22 + x,11 + y,3,1,74 );
gfx.PutPixel( 23 + x,11 + y,6,2,38 );
gfx.PutPixel( 3 + x,12 + y,23,1,22 );
gfx.PutPixel( 4 + x,12 + y,199,167,232 );
gfx.PutPixel( 5 + x,12 + y,68,40,102 );
gfx.PutPixel( 6 + x,12 + y,199,167,232 );
gfx.PutPixel( 7 + x,12 + y,199,167,232 );
gfx.PutPixel( 8 + x,12 + y,55,53,88 );
gfx.PutPixel( 9 + x,12 + y,197,183,219 );
gfx.PutPixel( 10 + x,12 + y,55,53,88 );
gfx.PutPixel( 11 + x,12 + y,56,43,85 );
gfx.PutPixel( 12 + x,12 + y,55,53,88 );
gfx.PutPixel( 13 + x,12 + y,6,2,38 );
gfx.PutPixel( 14 + x,12 + y,72,69,118 );
gfx.PutPixel( 15 + x,12 + y,123,120,196 );
gfx.PutPixel( 16 + x,12 + y,133,106,195 );
gfx.PutPixel( 17 + x,12 + y,150,119,196 );
gfx.PutPixel( 18 + x,12 + y,3,0,54 );
gfx.PutPixel( 19 + x,12 + y,44,42,86 );
gfx.PutPixel( 20 + x,12 + y,79,81,120 );
gfx.PutPixel( 21 + x,12 + y,129,130,153 );
gfx.PutPixel( 22 + x,12 + y,23,1,3 );
gfx.PutPixel( 3 + x,13 + y,23,1,3 );
gfx.PutPixel( 4 + x,13 + y,186,169,229 );
gfx.PutPixel( 5 + x,13 + y,68,40,102 );
gfx.PutPixel( 6 + x,13 + y,199,167,232 );
gfx.PutPixel( 7 + x,13 + y,68,40,102 );
gfx.PutPixel( 8 + x,13 + y,135,119,152 );
gfx.PutPixel( 9 + x,13 + y,56,43,85 );
gfx.PutPixel( 10 + x,13 + y,133,117,184 );
gfx.PutPixel( 11 + x,13 + y,185,168,218 );
gfx.PutPixel( 12 + x,13 + y,185,178,216 );
gfx.PutPixel( 13 + x,13 + y,133,120,168 );
gfx.PutPixel( 14 + x,13 + y,3,0,54 );
gfx.PutPixel( 15 + x,13 + y,87,70,132 );
gfx.PutPixel( 16 + x,13 + y,133,119,200 );
gfx.PutPixel( 17 + x,13 + y,133,119,200 );
gfx.PutPixel( 18 + x,13 + y,3,0,54 );
gfx.PutPixel( 19 + x,13 + y,174,186,228 );
gfx.PutPixel( 20 + x,13 + y,151,150,190 );
gfx.PutPixel( 21 + x,13 + y,6,2,22 );
gfx.PutPixel( 3 + x,14 + y,23,1,38 );
gfx.PutPixel( 4 + x,14 + y,69,30,103 );
gfx.PutPixel( 5 + x,14 + y,199,167,232 );
gfx.PutPixel( 6 + x,14 + y,185,168,218 );
gfx.PutPixel( 7 + x,14 + y,55,53,88 );
gfx.PutPixel( 8 + x,14 + y,55,54,75 );
gfx.PutPixel( 9 + x,14 + y,126,129,158 );
gfx.PutPixel( 10 + x,14 + y,187,165,202 );
gfx.PutPixel( 11 + x,14 + y,249,225,248 );
gfx.PutPixel( 12 + x,14 + y,249,225,248 );
gfx.PutPixel( 13 + x,14 + y,185,178,216 );
gfx.PutPixel( 14 + x,14 + y,123,120,196 );
gfx.PutPixel( 15 + x,14 + y,3,0,54 );
gfx.PutPixel( 16 + x,14 + y,85,70,121 );
gfx.PutPixel( 17 + x,14 + y,154,124,184 );
gfx.PutPixel( 18 + x,14 + y,149,120,169 );
gfx.PutPixel( 19 + x,14 + y,67,39,77 );
gfx.PutPixel( 20 + x,14 + y,169,146,166 );
gfx.PutPixel( 21 + x,14 + y,6,3,5 );
gfx.PutPixel( 2 + x,15 + y,6,3,5 );
gfx.PutPixel( 3 + x,15 + y,197,180,232 );
gfx.PutPixel( 4 + x,15 + y,199,167,232 );
gfx.PutPixel( 5 + x,15 + y,199,167,232 );
gfx.PutPixel( 6 + x,15 + y,56,43,85 );
gfx.PutPixel( 7 + x,15 + y,85,71,105 );
gfx.PutPixel( 8 + x,15 + y,55,54,75 );
gfx.PutPixel( 9 + x,15 + y,125,122,148 );
gfx.PutPixel( 10 + x,15 + y,185,177,232 );
gfx.PutPixel( 11 + x,15 + y,238,225,252 );
gfx.PutPixel( 12 + x,15 + y,249,225,248 );
gfx.PutPixel( 13 + x,15 + y,185,168,218 );
gfx.PutPixel( 14 + x,15 + y,187,178,246 );
gfx.PutPixel( 15 + x,15 + y,136,131,198 );
gfx.PutPixel( 16 + x,15 + y,3,0,54 );
gfx.PutPixel( 17 + x,15 + y,84,58,122 );
gfx.PutPixel( 18 + x,15 + y,96,68,119 );
gfx.PutPixel( 19 + x,15 + y,146,120,151 );
gfx.PutPixel( 20 + x,15 + y,69,55,75 );
gfx.PutPixel( 2 + x,16 + y,6,2,22 );
gfx.PutPixel( 3 + x,16 + y,197,180,232 );
gfx.PutPixel( 4 + x,16 + y,196,167,217 );
gfx.PutPixel( 5 + x,16 + y,199,167,232 );
gfx.PutPixel( 6 + x,16 + y,52,51,103 );
gfx.PutPixel( 7 + x,16 + y,132,131,172 );
gfx.PutPixel( 8 + x,16 + y,52,51,103 );
gfx.PutPixel( 9 + x,16 + y,122,117,184 );
gfx.PutPixel( 10 + x,16 + y,132,108,213 );
gfx.PutPixel( 11 + x,16 + y,182,152,249 );
gfx.PutPixel( 12 + x,16 + y,167,165,247 );
gfx.PutPixel( 13 + x,16 + y,183,169,247 );
gfx.PutPixel( 14 + x,16 + y,124,128,188 );
gfx.PutPixel( 15 + x,16 + y,120,136,172 );
gfx.PutPixel( 16 + x,16 + y,55,53,88 );
gfx.PutPixel( 17 + x,16 + y,23,1,38 );
gfx.PutPixel( 18 + x,16 + y,6,3,5 );
gfx.PutPixel( 19 + x,16 + y,6,3,5 );
gfx.PutPixel( 20 + x,16 + y,36,1,2 );
gfx.PutPixel( 2 + x,17 + y,6,2,22 );
gfx.PutPixel( 3 + x,17 + y,133,120,168 );
gfx.PutPixel( 4 + x,17 + y,199,167,232 );
gfx.PutPixel( 5 + x,17 + y,80,43,110 );
gfx.PutPixel( 6 + x,17 + y,72,70,105 );
gfx.PutPixel( 7 + x,17 + y,124,119,166 );
gfx.PutPixel( 8 + x,17 + y,52,51,103 );
gfx.PutPixel( 9 + x,17 + y,71,67,148 );
gfx.PutPixel( 10 + x,17 + y,133,109,233 );
gfx.PutPixel( 11 + x,17 + y,135,117,215 );
gfx.PutPixel( 12 + x,17 + y,133,119,200 );
gfx.PutPixel( 13 + x,17 + y,122,117,184 );
gfx.PutPixel( 14 + x,17 + y,122,117,184 );
gfx.PutPixel( 15 + x,17 + y,57,71,120 );
gfx.PutPixel( 16 + x,17 + y,37,59,82 );
gfx.PutPixel( 17 + x,17 + y,72,70,105 );
gfx.PutPixel( 18 + x,17 + y,69,55,75 );
gfx.PutPixel( 2 + x,18 + y,6,2,22 );
gfx.PutPixel( 3 + x,18 + y,132,131,172 );
gfx.PutPixel( 4 + x,18 + y,199,167,232 );
gfx.PutPixel( 5 + x,18 + y,68,40,102 );
gfx.PutPixel( 6 + x,18 + y,73,69,133 );
gfx.PutPixel( 7 + x,18 + y,174,186,228 );
gfx.PutPixel( 8 + x,18 + y,52,51,103 );
gfx.PutPixel( 9 + x,18 + y,72,69,118 );
gfx.PutPixel( 10 + x,18 + y,72,60,131 );
gfx.PutPixel( 11 + x,18 + y,133,119,200 );
gfx.PutPixel( 12 + x,18 + y,133,120,168 );
gfx.PutPixel( 13 + x,18 + y,133,120,168 );
gfx.PutPixel( 14 + x,18 + y,84,58,122 );
gfx.PutPixel( 15 + x,18 + y,52,51,103 );
gfx.PutPixel( 16 + x,18 + y,55,53,88 );
gfx.PutPixel( 17 + x,18 + y,72,70,105 );
gfx.PutPixel( 18 + x,18 + y,88,87,87 );
gfx.PutPixel( 19 + x,18 + y,6,3,5 );
gfx.PutPixel( 2 + x,19 + y,6,2,22 );
gfx.PutPixel( 3 + x,19 + y,185,178,216 );
gfx.PutPixel( 4 + x,19 + y,70,35,114 );
gfx.PutPixel( 5 + x,19 + y,98,62,132 );
gfx.PutPixel( 6 + x,19 + y,124,128,188 );
gfx.PutPixel( 7 + x,19 + y,167,165,247 );
gfx.PutPixel( 8 + x,19 + y,72,69,118 );
gfx.PutPixel( 9 + x,19 + y,39,56,101 );
gfx.PutPixel( 10 + x,19 + y,72,60,131 );
gfx.PutPixel( 11 + x,19 + y,85,61,135 );
gfx.PutPixel( 12 + x,19 + y,98,62,132 );
gfx.PutPixel( 13 + x,19 + y,56,43,85 );
gfx.PutPixel( 14 + x,19 + y,68,40,102 );
gfx.PutPixel( 15 + x,19 + y,133,117,184 );
gfx.PutPixel( 16 + x,19 + y,185,178,216 );
gfx.PutPixel( 17 + x,19 + y,36,59,68 );
gfx.PutPixel( 18 + x,19 + y,133,131,141 );
gfx.PutPixel( 19 + x,19 + y,6,3,5 );
gfx.PutPixel( 24 + x,19 + y,23,1,3 );
gfx.PutPixel( 25 + x,19 + y,6,3,5 );
gfx.PutPixel( 2 + x,20 + y,23,1,22 );
gfx.PutPixel( 3 + x,20 + y,197,183,219 );
gfx.PutPixel( 4 + x,20 + y,66,44,89 );
gfx.PutPixel( 5 + x,20 + y,70,53,86 );
gfx.PutPixel( 6 + x,20 + y,129,130,153 );
gfx.PutPixel( 7 + x,20 + y,72,70,105 );
gfx.PutPixel( 8 + x,20 + y,55,53,88 );
gfx.PutPixel( 9 + x,20 + y,26,37,57 );
gfx.PutPixel( 10 + x,20 + y,55,54,75 );
gfx.PutPixel( 11 + x,20 + y,56,44,57 );
gfx.PutPixel( 12 + x,20 + y,56,43,85 );
gfx.PutPixel( 13 + x,20 + y,149,120,169 );
gfx.PutPixel( 14 + x,20 + y,199,167,232 );
gfx.PutPixel( 15 + x,20 + y,196,167,217 );
gfx.PutPixel( 16 + x,20 + y,230,217,250 );
gfx.PutPixel( 17 + x,20 + y,174,186,228 );
gfx.PutPixel( 18 + x,20 + y,36,59,68 );
gfx.PutPixel( 19 + x,20 + y,6,3,5 );
gfx.PutPixel( 23 + x,20 + y,23,1,22 );
gfx.PutPixel( 24 + x,20 + y,99,107,110 );
gfx.PutPixel( 25 + x,20 + y,156,166,168 );
gfx.PutPixel( 26 + x,20 + y,6,3,5 );
gfx.PutPixel( 2 + x,21 + y,23,1,22 );
gfx.PutPixel( 3 + x,21 + y,6,2,22 );
gfx.PutPixel( 4 + x,21 + y,66,44,89 );
gfx.PutPixel( 5 + x,21 + y,85,65,93 );
gfx.PutPixel( 6 + x,21 + y,129,130,153 );
gfx.PutPixel( 7 + x,21 + y,55,53,88 );
gfx.PutPixel( 8 + x,21 + y,60,70,102 );
gfx.PutPixel( 9 + x,21 + y,72,70,105 );
gfx.PutPixel( 10 + x,21 + y,55,54,75 );
gfx.PutPixel( 11 + x,21 + y,55,54,75 );
gfx.PutPixel( 12 + x,21 + y,85,71,105 );
gfx.PutPixel( 13 + x,21 + y,186,169,229 );
gfx.PutPixel( 14 + x,21 + y,199,167,232 );
gfx.PutPixel( 15 + x,21 + y,249,217,250 );
gfx.PutPixel( 16 + x,21 + y,238,225,252 );
gfx.PutPixel( 17 + x,21 + y,171,185,217 );
gfx.PutPixel( 18 + x,21 + y,21,69,87 );
gfx.PutPixel( 19 + x,21 + y,70,99,89 );
gfx.PutPixel( 20 + x,21 + y,23,1,3 );
gfx.PutPixel( 21 + x,21 + y,23,1,3 );
gfx.PutPixel( 22 + x,21 + y,23,1,22 );
gfx.PutPixel( 23 + x,21 + y,33,1,22 );
gfx.PutPixel( 24 + x,21 + y,6,3,5 );
gfx.PutPixel( 25 + x,21 + y,91,96,102 );
gfx.PutPixel( 26 + x,21 + y,121,101,99 );
gfx.PutPixel( 27 + x,21 + y,23,1,3 );
gfx.PutPixel( 28 + x,21 + y,36,1,2 );
gfx.PutPixel( 4 + x,22 + y,23,1,3 );
gfx.PutPixel( 5 + x,22 + y,57,52,50 );
gfx.PutPixel( 6 + x,22 + y,55,53,88 );
gfx.PutPixel( 7 + x,22 + y,85,70,121 );
gfx.PutPixel( 8 + x,22 + y,122,117,184 );
gfx.PutPixel( 9 + x,22 + y,187,178,246 );
gfx.PutPixel( 10 + x,22 + y,69,55,118 );
gfx.PutPixel( 11 + x,22 + y,72,69,118 );
gfx.PutPixel( 12 + x,22 + y,39,56,101 );
gfx.PutPixel( 13 + x,22 + y,72,69,118 );
gfx.PutPixel( 14 + x,22 + y,72,60,131 );
gfx.PutPixel( 15 + x,22 + y,186,169,229 );
gfx.PutPixel( 16 + x,22 + y,185,177,232 );
gfx.PutPixel( 17 + x,22 + y,37,59,82 );
gfx.PutPixel( 18 + x,22 + y,76,120,118 );
gfx.PutPixel( 19 + x,22 + y,76,120,118 );
gfx.PutPixel( 20 + x,22 + y,36,35,75 );
gfx.PutPixel( 21 + x,22 + y,87,70,132 );
gfx.PutPixel( 22 + x,22 + y,164,135,215 );
gfx.PutPixel( 23 + x,22 + y,164,135,215 );
gfx.PutPixel( 24 + x,22 + y,124,119,166 );
gfx.PutPixel( 25 + x,22 + y,6,2,22 );
gfx.PutPixel( 26 + x,22 + y,57,52,50 );
gfx.PutPixel( 27 + x,22 + y,115,94,111 );
gfx.PutPixel( 28 + x,22 + y,168,157,154 );
gfx.PutPixel( 29 + x,22 + y,23,1,3 );
gfx.PutPixel( 5 + x,23 + y,6,3,5 );
gfx.PutPixel( 6 + x,23 + y,54,45,75 );
gfx.PutPixel( 7 + x,23 + y,56,43,85 );
gfx.PutPixel( 8 + x,23 + y,55,50,120 );
gfx.PutPixel( 9 + x,23 + y,133,119,200 );
gfx.PutPixel( 10 + x,23 + y,185,177,232 );
gfx.PutPixel( 11 + x,23 + y,73,69,133 );
gfx.PutPixel( 12 + x,23 + y,57,71,120 );
gfx.PutPixel( 13 + x,23 + y,39,56,101 );
gfx.PutPixel( 14 + x,23 + y,60,41,119 );
gfx.PutPixel( 15 + x,23 + y,72,60,131 );
gfx.PutPixel( 16 + x,23 + y,55,53,88 );
gfx.PutPixel( 17 + x,23 + y,72,88,105 );
gfx.PutPixel( 18 + x,23 + y,42,91,88 );
gfx.PutPixel( 19 + x,23 + y,85,125,133 );
gfx.PutPixel( 20 + x,23 + y,52,51,103 );
gfx.PutPixel( 21 + x,23 + y,187,178,246 );
gfx.PutPixel( 22 + x,23 + y,199,167,232 );
gfx.PutPixel( 23 + x,23 + y,178,140,217 );
gfx.PutPixel( 24 + x,23 + y,72,69,118 );
gfx.PutPixel( 25 + x,23 + y,72,71,90 );
gfx.PutPixel( 26 + x,23 + y,6,3,5 );
gfx.PutPixel( 27 + x,23 + y,68,50,54 );
gfx.PutPixel( 28 + x,23 + y,68,50,54 );
gfx.PutPixel( 29 + x,23 + y,181,161,163 );
gfx.PutPixel( 30 + x,23 + y,23,1,3 );
gfx.PutPixel( 31 + x,23 + y,23,1,3 );
gfx.PutPixel( 4 + x,24 + y,23,1,22 );
gfx.PutPixel( 5 + x,24 + y,77,61,108 );
gfx.PutPixel( 6 + x,24 + y,84,60,151 );
gfx.PutPixel( 7 + x,24 + y,150,119,196 );
gfx.PutPixel( 8 + x,24 + y,123,116,213 );
gfx.PutPixel( 9 + x,24 + y,45,35,122 );
gfx.PutPixel( 10 + x,24 + y,133,120,168 );
gfx.PutPixel( 11 + x,24 + y,72,70,105 );
gfx.PutPixel( 12 + x,24 + y,54,45,75 );
gfx.PutPixel( 13 + x,24 + y,126,129,158 );
gfx.PutPixel( 14 + x,24 + y,133,117,184 );
gfx.PutPixel( 15 + x,24 + y,77,61,108 );
gfx.PutPixel( 16 + x,24 + y,56,43,85 );
gfx.PutPixel( 17 + x,24 + y,56,44,57 );
gfx.PutPixel( 18 + x,24 + y,70,99,89 );
gfx.PutPixel( 19 + x,24 + y,35,68,59 );
gfx.PutPixel( 20 + x,24 + y,72,69,118 );
gfx.PutPixel( 21 + x,24 + y,171,170,231 );
gfx.PutPixel( 22 + x,24 + y,184,140,232 );
gfx.PutPixel( 23 + x,24 + y,195,155,249 );
gfx.PutPixel( 24 + x,24 + y,55,53,88 );
gfx.PutPixel( 25 + x,24 + y,72,71,90 );
gfx.PutPixel( 26 + x,24 + y,6,3,5 );
gfx.PutPixel( 27 + x,24 + y,6,3,5 );
gfx.PutPixel( 28 + x,24 + y,6,3,5 );
gfx.PutPixel( 29 + x,24 + y,47,46,41 );
gfx.PutPixel( 30 + x,24 + y,47,46,41 );
gfx.PutPixel( 31 + x,24 + y,168,157,154 );
gfx.PutPixel( 32 + x,24 + y,6,3,5 );
gfx.PutPixel( 33 + x,24 + y,23,1,3 );
gfx.PutPixel( 4 + x,25 + y,6,3,5 );
gfx.PutPixel( 5 + x,25 + y,85,70,121 );
gfx.PutPixel( 6 + x,25 + y,133,106,195 );
gfx.PutPixel( 7 + x,25 + y,195,167,245 );
gfx.PutPixel( 8 + x,25 + y,183,169,247 );
gfx.PutPixel( 9 + x,25 + y,133,119,200 );
gfx.PutPixel( 10 + x,25 + y,55,53,88 );
gfx.PutPixel( 11 + x,25 + y,55,53,88 );
gfx.PutPixel( 12 + x,25 + y,55,53,88 );
gfx.PutPixel( 13 + x,25 + y,55,53,88 );
gfx.PutPixel( 14 + x,25 + y,68,40,102 );
gfx.PutPixel( 15 + x,25 + y,85,61,135 );
gfx.PutPixel( 16 + x,25 + y,133,120,168 );
gfx.PutPixel( 17 + x,25 + y,146,120,151 );
gfx.PutPixel( 18 + x,25 + y,45,60,57 );
gfx.PutPixel( 19 + x,25 + y,41,68,75 );
gfx.PutPixel( 20 + x,25 + y,124,119,166 );
gfx.PutPixel( 21 + x,25 + y,123,111,187 );
gfx.PutPixel( 22 + x,25 + y,99,54,149 );
gfx.PutPixel( 23 + x,25 + y,184,140,232 );
gfx.PutPixel( 24 + x,25 + y,56,43,85 );
gfx.PutPixel( 25 + x,25 + y,69,55,75 );
gfx.PutPixel( 26 + x,25 + y,6,3,5 );
gfx.PutPixel( 27 + x,25 + y,53,51,46 );
gfx.PutPixel( 28 + x,25 + y,6,3,5 );
gfx.PutPixel( 29 + x,25 + y,57,52,50 );
gfx.PutPixel( 30 + x,25 + y,88,87,87 );
gfx.PutPixel( 31 + x,25 + y,53,51,46 );
gfx.PutPixel( 32 + x,25 + y,55,44,40 );
gfx.PutPixel( 33 + x,25 + y,121,101,99 );
gfx.PutPixel( 34 + x,25 + y,36,1,2 );
gfx.PutPixel( 4 + x,26 + y,23,1,38 );
gfx.PutPixel( 5 + x,26 + y,85,70,121 );
gfx.PutPixel( 6 + x,26 + y,150,119,196 );
gfx.PutPixel( 7 + x,26 + y,133,106,195 );
gfx.PutPixel( 8 + x,26 + y,195,155,249 );
gfx.PutPixel( 9 + x,26 + y,208,167,245 );
gfx.PutPixel( 10 + x,26 + y,57,44,106 );
gfx.PutPixel( 11 + x,26 + y,56,43,85 );
gfx.PutPixel( 12 + x,26 + y,126,129,158 );
gfx.PutPixel( 13 + x,26 + y,55,53,88 );
gfx.PutPixel( 14 + x,26 + y,73,69,133 );
gfx.PutPixel( 15 + x,26 + y,72,60,131 );
gfx.PutPixel( 16 + x,26 + y,122,117,184 );
gfx.PutPixel( 17 + x,26 + y,133,117,184 );
gfx.PutPixel( 18 + x,26 + y,77,61,108 );
gfx.PutPixel( 19 + x,26 + y,56,43,85 );
gfx.PutPixel( 20 + x,26 + y,69,55,75 );
gfx.PutPixel( 21 + x,26 + y,70,53,86 );
gfx.PutPixel( 22 + x,26 + y,125,122,148 );
gfx.PutPixel( 23 + x,26 + y,124,119,166 );
gfx.PutPixel( 24 + x,26 + y,57,44,106 );
gfx.PutPixel( 25 + x,26 + y,150,119,196 );
gfx.PutPixel( 26 + x,26 + y,23,1,3 );
gfx.PutPixel( 27 + x,26 + y,78,45,40 );
gfx.PutPixel( 28 + x,26 + y,55,44,40 );
gfx.PutPixel( 29 + x,26 + y,55,44,40 );
gfx.PutPixel( 30 + x,26 + y,55,44,40 );
gfx.PutPixel( 31 + x,26 + y,53,51,46 );
gfx.PutPixel( 32 + x,26 + y,97,85,89 );
gfx.PutPixel( 33 + x,26 + y,56,44,57 );
gfx.PutPixel( 34 + x,26 + y,121,101,99 );
gfx.PutPixel( 35 + x,26 + y,36,1,2 );
gfx.PutPixel( 4 + x,27 + y,23,1,38 );
gfx.PutPixel( 5 + x,27 + y,84,58,122 );
gfx.PutPixel( 6 + x,27 + y,98,62,132 );
gfx.PutPixel( 7 + x,27 + y,133,108,180 );
gfx.PutPixel( 8 + x,27 + y,150,119,196 );
gfx.PutPixel( 9 + x,27 + y,69,30,103 );
gfx.PutPixel( 10 + x,27 + y,186,169,229 );
gfx.PutPixel( 11 + x,27 + y,197,180,232 );
gfx.PutPixel( 12 + x,27 + y,185,178,216 );
gfx.PutPixel( 13 + x,27 + y,56,43,85 );
gfx.PutPixel( 14 + x,27 + y,73,69,133 );
gfx.PutPixel( 15 + x,27 + y,72,60,131 );
gfx.PutPixel( 16 + x,27 + y,73,69,133 );
gfx.PutPixel( 17 + x,27 + y,60,41,119 );
gfx.PutPixel( 18 + x,27 + y,133,120,168 );
gfx.PutPixel( 19 + x,27 + y,185,168,218 );
gfx.PutPixel( 20 + x,27 + y,56,44,57 );
gfx.PutPixel( 21 + x,27 + y,85,71,105 );
gfx.PutPixel( 22 + x,27 + y,55,53,88 );
gfx.PutPixel( 23 + x,27 + y,52,51,103 );
gfx.PutPixel( 24 + x,27 + y,122,117,184 );
gfx.PutPixel( 25 + x,27 + y,195,167,245 );
gfx.PutPixel( 26 + x,27 + y,23,1,3 );
gfx.PutPixel( 28 + x,27 + y,23,1,3 );
gfx.PutPixel( 29 + x,27 + y,23,1,3 );
gfx.PutPixel( 30 + x,27 + y,74,65,60 );
gfx.PutPixel( 31 + x,27 + y,55,44,40 );
gfx.PutPixel( 32 + x,27 + y,55,44,40 );
gfx.PutPixel( 33 + x,27 + y,97,85,89 );
gfx.PutPixel( 34 + x,27 + y,23,1,3 );
gfx.PutPixel( 35 + x,27 + y,36,1,2 );
gfx.PutPixel( 4 + x,28 + y,6,3,5 );
gfx.PutPixel( 5 + x,28 + y,59,71,92 );
gfx.PutPixel( 6 + x,28 + y,57,71,120 );
gfx.PutPixel( 7 + x,28 + y,73,69,133 );
gfx.PutPixel( 8 + x,28 + y,55,50,120 );
gfx.PutPixel( 9 + x,28 + y,133,119,200 );
gfx.PutPixel( 10 + x,28 + y,167,165,247 );
gfx.PutPixel( 11 + x,28 + y,123,116,213 );
gfx.PutPixel( 12 + x,28 + y,133,119,200 );
gfx.PutPixel( 13 + x,28 + y,132,108,213 );
gfx.PutPixel( 14 + x,28 + y,52,51,103 );
gfx.PutPixel( 15 + x,28 + y,72,69,118 );
gfx.PutPixel( 16 + x,28 + y,59,71,92 );
gfx.PutPixel( 17 + x,28 + y,59,71,92 );
gfx.PutPixel( 18 + x,28 + y,123,111,187 );
gfx.PutPixel( 19 + x,28 + y,135,130,184 );
gfx.PutPixel( 20 + x,28 + y,171,170,231 );
gfx.PutPixel( 21 + x,28 + y,55,53,88 );
gfx.PutPixel( 22 + x,28 + y,72,71,90 );
gfx.PutPixel( 23 + x,28 + y,133,131,141 );
gfx.PutPixel( 24 + x,28 + y,146,131,136 );
gfx.PutPixel( 25 + x,28 + y,23,1,3 );
gfx.PutPixel( 30 + x,28 + y,36,1,2 );
gfx.PutPixel( 31 + x,28 + y,36,1,2 );
gfx.PutPixel( 32 + x,28 + y,53,51,46 );
gfx.PutPixel( 33 + x,28 + y,53,32,31 );
gfx.PutPixel( 34 + x,28 + y,23,1,3 );
gfx.PutPixel( 5 + x,29 + y,6,2,22 );
gfx.PutPixel( 6 + x,29 + y,60,70,102 );
gfx.PutPixel( 7 + x,29 + y,57,71,120 );
gfx.PutPixel( 8 + x,29 + y,42,45,105 );
gfx.PutPixel( 9 + x,29 + y,69,61,144 );
gfx.PutPixel( 10 + x,29 + y,132,128,222 );
gfx.PutPixel( 11 + x,29 + y,123,116,213 );
gfx.PutPixel( 12 + x,29 + y,132,108,213 );
gfx.PutPixel( 13 + x,29 + y,146,109,212 );
gfx.PutPixel( 14 + x,29 + y,52,51,103 );
gfx.PutPixel( 15 + x,29 + y,54,45,75 );
gfx.PutPixel( 16 + x,29 + y,72,70,105 );
gfx.PutPixel( 17 + x,29 + y,55,54,75 );
gfx.PutPixel( 18 + x,29 + y,85,74,148 );
gfx.PutPixel( 19 + x,29 + y,122,117,184 );
gfx.PutPixel( 20 + x,29 + y,133,120,168 );
gfx.PutPixel( 21 + x,29 + y,6,2,38 );
gfx.PutPixel( 22 + x,29 + y,6,3,5 );
gfx.PutPixel( 23 + x,29 + y,6,2,22 );
gfx.PutPixel( 24 + x,29 + y,23,1,3 );
gfx.PutPixel( 32 + x,29 + y,23,1,3 );
gfx.PutPixel( 33 + x,29 + y,36,1,2 );
gfx.PutPixel( 4 + x,30 + y,6,3,5 );
gfx.PutPixel( 5 + x,30 + y,72,88,105 );
gfx.PutPixel( 6 + x,30 + y,36,70,82 );
gfx.PutPixel( 7 + x,30 + y,43,65,102 );
gfx.PutPixel( 8 + x,30 + y,57,71,120 );
gfx.PutPixel( 9 + x,30 + y,57,71,120 );
gfx.PutPixel( 10 + x,30 + y,57,71,120 );
gfx.PutPixel( 11 + x,30 + y,123,120,196 );
gfx.PutPixel( 12 + x,30 + y,133,119,200 );
gfx.PutPixel( 13 + x,30 + y,71,67,148 );
gfx.PutPixel( 14 + x,30 + y,21,69,87 );
gfx.PutPixel( 15 + x,30 + y,39,99,89 );
gfx.PutPixel( 16 + x,30 + y,27,73,51 );
gfx.PutPixel( 17 + x,30 + y,15,78,51 );
gfx.PutPixel( 18 + x,30 + y,60,70,102 );
gfx.PutPixel( 19 + x,30 + y,72,70,105 );
gfx.PutPixel( 20 + x,30 + y,85,71,105 );
gfx.PutPixel( 21 + x,30 + y,23,1,22 );
gfx.PutPixel( 4 + x,31 + y,6,3,5 );
gfx.PutPixel( 5 + x,31 + y,83,86,103 );
gfx.PutPixel( 6 + x,31 + y,98,114,140 );
gfx.PutPixel( 7 + x,31 + y,83,98,141 );
gfx.PutPixel( 8 + x,31 + y,39,56,101 );
gfx.PutPixel( 9 + x,31 + y,59,81,128 );
gfx.PutPixel( 10 + x,31 + y,57,71,120 );
gfx.PutPixel( 11 + x,31 + y,83,80,147 );
gfx.PutPixel( 12 + x,31 + y,71,67,148 );
gfx.PutPixel( 13 + x,31 + y,84,60,151 );
gfx.PutPixel( 14 + x,31 + y,21,69,87 );
gfx.PutPixel( 15 + x,31 + y,52,104,100 );
gfx.PutPixel( 16 + x,31 + y,75,129,106 );
gfx.PutPixel( 17 + x,31 + y,76,124,98 );
gfx.PutPixel( 18 + x,31 + y,6,2,38 );
gfx.PutPixel( 19 + x,31 + y,6,2,38 );
gfx.PutPixel( 20 + x,31 + y,6,2,22 );
gfx.PutPixel( 4 + x,32 + y,6,2,38 );
gfx.PutPixel( 5 + x,32 + y,56,43,85 );
gfx.PutPixel( 6 + x,32 + y,55,53,88 );
gfx.PutPixel( 7 + x,32 + y,56,43,85 );
gfx.PutPixel( 8 + x,32 + y,79,81,120 );
gfx.PutPixel( 9 + x,32 + y,45,60,57 );
gfx.PutPixel( 10 + x,32 + y,67,52,45 );
gfx.PutPixel( 11 + x,32 + y,23,1,3 );
gfx.PutPixel( 12 + x,32 + y,23,1,3 );
gfx.PutPixel( 13 + x,32 + y,80,46,47 );
gfx.PutPixel( 14 + x,32 + y,61,89,92 );
gfx.PutPixel( 15 + x,32 + y,82,117,110 );
gfx.PutPixel( 16 + x,32 + y,82,117,110 );
gfx.PutPixel( 17 + x,32 + y,90,120,115 );
gfx.PutPixel( 18 + x,32 + y,6,3,5 );
gfx.PutPixel( 3 + x,33 + y,23,1,22 );
gfx.PutPixel( 4 + x,33 + y,72,70,105 );
gfx.PutPixel( 5 + x,33 + y,185,168,218 );
gfx.PutPixel( 6 + x,33 + y,185,178,216 );
gfx.PutPixel( 7 + x,33 + y,185,168,218 );
gfx.PutPixel( 8 + x,33 + y,37,59,82 );
gfx.PutPixel( 9 + x,33 + y,71,88,82 );
gfx.PutPixel( 10 + x,33 + y,23,1,3 );
gfx.PutPixel( 13 + x,33 + y,36,1,2 );
gfx.PutPixel( 14 + x,33 + y,41,68,75 );
gfx.PutPixel( 15 + x,33 + y,25,61,57 );
gfx.PutPixel( 16 + x,33 + y,35,68,59 );
gfx.PutPixel( 17 + x,33 + y,35,68,59 );
gfx.PutPixel( 18 + x,33 + y,57,52,50 );
gfx.PutPixel( 19 + x,33 + y,23,1,3 );
gfx.PutPixel( 20 + x,33 + y,23,1,3 );
gfx.PutPixel( 21 + x,33 + y,36,1,2 );
gfx.PutPixel( 2 + x,34 + y,6,3,5 );
gfx.PutPixel( 3 + x,34 + y,77,61,108 );
gfx.PutPixel( 4 + x,34 + y,133,117,184 );
gfx.PutPixel( 5 + x,34 + y,120,108,199 );
gfx.PutPixel( 6 + x,34 + y,146,109,212 );
gfx.PutPixel( 7 + x,34 + y,150,119,196 );
gfx.PutPixel( 8 + x,34 + y,171,170,231 );
gfx.PutPixel( 9 + x,34 + y,6,2,22 );
gfx.PutPixel( 14 + x,34 + y,6,2,38 );
gfx.PutPixel( 15 + x,34 + y,72,69,118 );
gfx.PutPixel( 16 + x,34 + y,72,69,118 );
gfx.PutPixel( 17 + x,34 + y,133,117,184 );
gfx.PutPixel( 18 + x,34 + y,70,35,114 );
gfx.PutPixel( 19 + x,34 + y,85,61,135 );
gfx.PutPixel( 20 + x,34 + y,186,169,229 );
gfx.PutPixel( 21 + x,34 + y,185,177,232 );
gfx.PutPixel( 22 + x,34 + y,23,1,3 );
gfx.PutPixel( 2 + x,35 + y,23,1,22 );
gfx.PutPixel( 3 + x,35 + y,72,70,105 );
gfx.PutPixel( 4 + x,35 + y,85,61,135 );
gfx.PutPixel( 5 + x,35 + y,135,117,215 );
gfx.PutPixel( 6 + x,35 + y,146,109,212 );
gfx.PutPixel( 7 + x,35 + y,133,106,195 );
gfx.PutPixel( 8 + x,35 + y,135,130,184 );
gfx.PutPixel( 9 + x,35 + y,6,2,22 );
gfx.PutPixel( 13 + x,35 + y,36,1,2 );
gfx.PutPixel( 14 + x,35 + y,72,69,118 );
gfx.PutPixel( 15 + x,35 + y,133,117,184 );
gfx.PutPixel( 16 + x,35 + y,77,61,108 );
gfx.PutPixel( 17 + x,35 + y,69,55,118 );
gfx.PutPixel( 18 + x,35 + y,85,61,135 );
gfx.PutPixel( 19 + x,35 + y,133,117,184 );
gfx.PutPixel( 20 + x,35 + y,133,120,168 );
gfx.PutPixel( 21 + x,35 + y,185,177,232 );
gfx.PutPixel( 22 + x,35 + y,6,3,5 );
gfx.PutPixel( 2 + x,36 + y,6,2,22 );
gfx.PutPixel( 3 + x,36 + y,85,71,105 );
gfx.PutPixel( 4 + x,36 + y,84,58,122 );
gfx.PutPixel( 5 + x,36 + y,133,117,184 );
gfx.PutPixel( 6 + x,36 + y,133,108,180 );
gfx.PutPixel( 7 + x,36 + y,133,108,180 );
gfx.PutPixel( 8 + x,36 + y,135,130,184 );
gfx.PutPixel( 9 + x,36 + y,6,2,38 );
gfx.PutPixel( 13 + x,36 + y,23,1,3 );
gfx.PutPixel( 14 + x,36 + y,87,70,132 );
gfx.PutPixel( 15 + x,36 + y,73,69,133 );
gfx.PutPixel( 16 + x,36 + y,52,51,103 );
gfx.PutPixel( 17 + x,36 + y,72,69,118 );
gfx.PutPixel( 18 + x,36 + y,72,60,131 );
gfx.PutPixel( 19 + x,36 + y,133,119,200 );
gfx.PutPixel( 20 + x,36 + y,133,119,200 );
gfx.PutPixel( 21 + x,36 + y,123,120,196 );
gfx.PutPixel( 22 + x,36 + y,23,1,22 );
gfx.PutPixel( 2 + x,37 + y,6,3,5 );
gfx.PutPixel( 3 + x,37 + y,83,86,103 );
gfx.PutPixel( 4 + x,37 + y,85,70,121 );
gfx.PutPixel( 5 + x,37 + y,85,61,135 );
gfx.PutPixel( 6 + x,37 + y,73,69,133 );
gfx.PutPixel( 7 + x,37 + y,87,70,132 );
gfx.PutPixel( 8 + x,37 + y,72,69,118 );
gfx.PutPixel( 9 + x,37 + y,6,2,22 );
gfx.PutPixel( 13 + x,37 + y,23,1,3 );
gfx.PutPixel( 14 + x,37 + y,87,70,132 );
gfx.PutPixel( 15 + x,37 + y,55,50,120 );
gfx.PutPixel( 16 + x,37 + y,55,50,120 );
gfx.PutPixel( 17 + x,37 + y,73,69,133 );
gfx.PutPixel( 18 + x,37 + y,69,55,118 );
gfx.PutPixel( 19 + x,37 + y,73,69,133 );
gfx.PutPixel( 20 + x,37 + y,71,67,148 );
gfx.PutPixel( 21 + x,37 + y,85,74,148 );
gfx.PutPixel( 22 + x,37 + y,6,2,22 );
gfx.PutPixel( 3 + x,38 + y,36,1,2 );
gfx.PutPixel( 4 + x,38 + y,36,1,2 );
gfx.PutPixel( 5 + x,38 + y,36,1,2 );
gfx.PutPixel( 6 + x,38 + y,36,1,2 );
gfx.PutPixel( 7 + x,38 + y,36,1,2 );
gfx.PutPixel( 8 + x,38 + y,23,1,3 );
gfx.PutPixel( 14 + x,38 + y,33,1,22 );
gfx.PutPixel( 15 + x,38 + y,23,1,3 );
gfx.PutPixel( 16 + x,38 + y,6,3,5 );
gfx.PutPixel( 17 + x,38 + y,24,16,0 );
gfx.PutPixel( 18 + x,38 + y,23,1,3 );
gfx.PutPixel( 19 + x,38 + y,23,1,3 );
gfx.PutPixel( 20 + x,38 + y,36,1,2 );
gfx.PutPixel( 21 + x,38 + y,36,1,2 );
gfx.PutPixel( 22 + x,38 + y,51,5,8 );
}
void Game::DrawBulletR(int x,int y)
{
gfx.PutPixel( 0 + x,0 + y,24,66,106 );
gfx.PutPixel( 1 + x,0 + y,34,69,99 );
gfx.PutPixel( 2 + x,0 + y,37,72,104 );
gfx.PutPixel( 3 + x,0 + y,33,67,102 );
gfx.PutPixel( 4 + x,0 + y,42,71,111 );
gfx.PutPixel( 5 + x,0 + y,43,75,122 );
gfx.PutPixel( 6 + x,0 + y,50,89,146 );
gfx.PutPixel( 7 + x,0 + y,86,140,204 );
gfx.PutPixel( 0 + x,1 + y,76,105,123 );
gfx.PutPixel( 1 + x,1 + y,94,112,116 );
gfx.PutPixel( 2 + x,1 + y,106,123,130 );
gfx.PutPixel( 3 + x,1 + y,108,125,135 );
gfx.PutPixel( 4 + x,1 + y,99,110,128 );
gfx.PutPixel( 5 + x,1 + y,46,60,87 );
gfx.PutPixel( 6 + x,1 + y,8,31,72 );
gfx.PutPixel( 7 + x,1 + y,36,76,127 );
gfx.PutPixel( 0 + x,2 + y,176,200,200 );
gfx.PutPixel( 1 + x,2 + y,213,224,207 );
gfx.PutPixel( 2 + x,2 + y,235,246,230 );
gfx.PutPixel( 3 + x,2 + y,242,252,241 );
gfx.PutPixel( 4 + x,2 + y,238,242,241 );
gfx.PutPixel( 5 + x,2 + y,164,170,182 );
gfx.PutPixel( 6 + x,2 + y,56,72,98 );
gfx.PutPixel( 7 + x,2 + y,9,42,83 );
gfx.PutPixel( 0 + x,3 + y,109,138,146 );
gfx.PutPixel( 1 + x,3 + y,132,152,143 );
gfx.PutPixel( 2 + x,3 + y,147,168,159 );
gfx.PutPixel( 3 + x,3 + y,144,163,159 );
gfx.PutPixel( 4 + x,3 + y,130,141,147 );
gfx.PutPixel( 5 + x,3 + y,78,91,108 );
gfx.PutPixel( 6 + x,3 + y,25,48,79 );
gfx.PutPixel( 7 + x,3 + y,24,62,107 );
gfx.PutPixel( 0 + x,4 + y,1,49,87 );
gfx.PutPixel( 1 + x,4 + y,0,44,75 );
gfx.PutPixel( 2 + x,4 + y,12,59,87 );
gfx.PutPixel( 3 + x,4 + y,17,60,92 );
gfx.PutPixel( 4 + x,4 + y,9,44,82 );
gfx.PutPixel( 5 + x,4 + y,2,39,83 );
gfx.PutPixel( 6 + x,4 + y,32,75,128 );
gfx.PutPixel( 7 + x,4 + y,93,148,212 );

}
void Game::Go()
{
	gfx.BeginFrame();
	ComposeFrame();
	gfx.EndFrame();
}
void Game::Selection()
{//code for selection screen
	int mx,my;
	mx=mouse.GetMouseX();
	my=mouse.GetMouseY();
	//this can be a separate selection screen function on its own
		if(mx>=78 && mx<= 218 && my >= 66 && my<=275)
		{//rem selection
			gfx.DrawRem();//78,66 to 218 ,275
		}
		else if(mx>=237 && mx<=360  && my>=70 && my<= 264)
		{//rainey 237,70 to 360 ,264
			gfx.DrawRain();//chnge to rainey later
		}
		else if (mx>=388 && mx<=511  && my>=70 && my<= 264)
		{//beezel  388,70 to 511,263
				gfx.DrawBeezel();// beezel 
		}
		else
		{//normal selection screen
			gfx.DrawSelectionScreen();
		}
		if( mouse.LeftIsPressed() )
		{
			if(mx >= 78 && mx <= 218 && my >= 66 && my <= 275)
			{//rem selection
				selectiondone = true;
				selectedchar = REM;
			}
			else if(mx >= 237 && mx <= 360  && my >=70 && my <= 264)
			{//rainey 
				selectiondone = true;
				selectedchar = RAIN;
			}
			else if (mx >= 388 && mx <= 511  && my >= 70 && my <= 264)
			{//beezel  
				selectiondone = true;
				selectedchar = BEEZEL;
			}
		 	}
}
void Game::LoadMap(int mapId=0)//default map
{
	switch(mapId)
	{
		case 0:
		{//default map loading
			//test with no scroll and improve on it later
			//initialise map details
			MapWidth = 799;
			MapHeight = 599;
			noOfPlatform = 5 ;//set 5 platforms
			pPlatform = new Platform[5];//contains 5 platform for a start
			
			PlayerX = 200;//Spawn place of player
			PlayerY =  578-40;//40 is the height of the character
			pPlatform[0].top = 578;
			pPlatform[0].bot = 598;
			pPlatform[0].left = 100;
			pPlatform[0].right = 700; 

			pPlatform[1].top = 473;
			pPlatform[1].bot = 493;
			pPlatform[1].left = 0;
			pPlatform[1].right = 136; 

			pPlatform[2].top = 507;
			pPlatform[2].bot = 527;
			pPlatform[2].left = 217;
			pPlatform[2].right = 317; 

			pPlatform[3].top = 473;
			pPlatform[3].bot = 493;
			pPlatform[3].left = 721;
			pPlatform[3].right = 799; 

			pPlatform[4].top = 338;
			pPlatform[4].bot = 358;
			pPlatform[4].left = 133;
			pPlatform[4].right = 654; 

			break;
		}
	
	}
}
void Game::InGame()//run in game mechanics
{
	//based on 	Character selectedchar; draw different character
	//load map
}
void Game::DrawToolBar()
{
		//Drawing of Player tool bar
	//from y coordinate of 400 to 599 is always displaying of toolbar
		for(int i=0;i<5;i++)//thickness of 5 pixels till  y = 504
			gfx.DrawLine(0,400+i,799,400+i,255,255,255);//drawing of boundary of toolbar with white line
		for(int i=0;i<5;i++)//thickness of 5 pixels till  y = 504
			gfx.DrawLine(200+i,400,200+i,599,255,255,255);//vertical boundary of minimap
	//End of player tool bar 		//Drawing of minimap
		//end of minimap
//--------------------------drawing of healthbar--------------------------------
		//need to write the heath in text also in numbers
		//x coordinate 232 544
		//y cordinate 453
		int healthX= float((PlayerHealth)/100.0) * float(544-232) + 232.0;//assuming 100 is the max health
		//using of red color 181 52 ,47
		coord p1 ={232,453};//top left
		coord p2 ={healthX,453};// top right 544 is the full health bar
		coord p3 = {232,483};//bottom left
		gfx.DrawRect(p1,p2,p3,181,52,47);
		gfx.DrawLine(233,453,544,453,255,255,255);//white border
		gfx.DrawLine(233,483,544,483,255,255,255);
		gfx.DrawLine(233,453,233,483,255,255,255);
		gfx.DrawLine(544,453,544,483,255,255,255);
		//drawborder of health bar
//-------------------------End of Health bar drawing
		//drawing of text on screen
		TCHAR ha[]= "Health Bar";
		SetBkMode(hdc, TRANSPARENT); 
		SetTextColor(hdc,0x001EECFF);//0x00bbggrr
		TextOut(hdc,229,420,ha,ARRAYSIZE(ha));

		char healthno[4] = {0};
		itoa(int(PlayerHealth),healthno,10);//other ways include sprintf to print to a string , using sstream to retrieve
		TextOut(hdc,388,420,healthno,strlen(healthno)+1);
		//end of text drawing

		//---------------------Friction bar-----------------------------------
		int frictionxp = (frictionc / 100.0) *(542-232) +232.0;//friction is allowed to change from 0 to 100
		coord f1 = {232,507};
		coord f2 = { frictionxp,507};
		coord f3 = { 232,539} ;
		gfx.DrawRect( f1, f2, f3, 50, 210, 255);
		gfx.DrawLine(232,507,542,507,255,255,255);
		gfx.DrawLine(542,507,542,539,255,255,255);
		gfx.DrawLine(542,539,232,539,255,255,255);
		gfx.DrawLine(232,507,232,539,255,255,255);

		TCHAR frictext[]= "Friction Bar";
		//SetBkMode(hdc, TRANSPARENT); 
		SetTextColor(hdc,0x001EECFF);//0x00bbggrr
		TextOut(hdc,232,488,frictext,ARRAYSIZE(frictext));

		char frictno[4] = {0};
		itoa(int(frictionc),frictno,10);
		TextOut(hdc,388,488,frictno,strlen(frictno)+1);

		//---------------------------------End of Friction bar-----------------------------

		// -----------------------GRAVITY BAR------------------------------
		int gravityxp = (gravityc / 100.0) *(542-232) +232.0;//gravityc is allowed to change from 0 to 100
		coord g1 = {232,565};
		coord g2 = { gravityxp,565};
		coord g3 = { 232,596} ;
		gfx.DrawRect( g1, g2, g3, 255, 20, 208);
		gfx.DrawLine(232,565,542,565,255,255,255);
		gfx.DrawLine(542,565,542,596,255,255,255);
		gfx.DrawLine(542,596,232,596,255,255,255);
		gfx.DrawLine(232,565,232,596,255,255,255);
		
		TCHAR gravtext[]= "Gravity Bar";
		//SetBkMode(hdc, TRANSPARENT); 
		//SetTextColor(hdc,0x001EECFF);//0x00bbggrr
		TextOut(hdc,232,544,gravtext,ARRAYSIZE(gravtext));
		//display gravity c convert it to char aray and display it
		char gravno[4] = {0};
		itoa(int(gravityc),gravno,10);
		TextOut(hdc,388,544,gravno,strlen(gravno)+1);
		//------------------------END OF GRAVITY BAR -----------------------------------
		//gfx.drawrect();// top left and bottom left of box is fixed right corner needs to be calculated as a length of the length of health bar
		
		//drawing of equipemnt based on selected equiment
}
//void Game::Co(int )
void Game::DrawPlatform(int top,int bot,int left, int right )
{//this takes the camera into account
	coord p1 = {left,top-TOOLBARHEIGHT };
	coord p2 = { right,top-TOOLBARHEIGHT};
	coord p3 = { left,bot-TOOLBARHEIGHT };
	gfx.DrawRect(p1,p2,p3,114,99,92 );//114,99,92 grey color of platform
}
void Game::DrawGameScreen()
{// from y=0 to y=499 is game screen which is scrollable
	
	//DrawBulletR(250,120);//bullet is about 20 pixels down from top of character image
	//DrawBulletR(270,120);//bullet dimension 9x5 pixels
	//DrawBulletR(290,120);
	for (int i=0 ; i<noOfPlatform;i++)
	{//drawing of platform onto screen later change to update platform function
		DrawPlatform(pPlatform[i].top,pPlatform[i].bot,pPlatform[i].left,pPlatform[i].right);
	}
	DrawPlayer();
}
void Game::DrawPlayer()
{//decide which sprite to draw whether it is left or right or shooting sprite or jumping
	//must take into account the camera movement
	if(PlayerDirection == LEFT)
	{
		if(PlayerY- TOOLBARHEIGHT>10)
			DrawM1L(PlayerX ,PlayerY- TOOLBARHEIGHT);
	}
	else if(PlayerDirection == RIGHT)
	{
		if(PlayerY- TOOLBARHEIGHT>10)
		DrawM1R(PlayerX ,PlayerY - TOOLBARHEIGHT);
	}
}
void Game::UpdatePlayer()
{//this function contains the mechanics for player movement 
	//and determine the X,Y position of character
	//directon of character
	//velocity if implemented
	//detects collision with platforms 
	//std::cout<<"SPlatform: "<<SPlatform;
	//std::cout<<"  velocityX: "<<velocityX;
	//std::cout<<"  velocityY: "<<velocityY<<"\n";
	//start of platform check
	int found=false;
	for(int i = 0;i <noOfPlatform;i++)
		{//platform check
			if(PlayerY+40 >= pPlatform[i].top && PlayerY+40 <= pPlatform[i].bot && PlayerX>=pPlatform[i].left && PlayerX <= pPlatform[i].right)
			{
				PlayerY = pPlatform[i].top - 40;//set to standing on top
				SPlatform = i;
				found =true;
			}
			
		}
		if (found == false)
		{
			SPlatform =-1; 
		}
	//end of platform check
	//collision with projectile is in another damage function
	//------------------------- moving mechanics-------------------------------
		
			if(kbd.RightIsPressed() )
			{//move right
				PlayerDirection = RIGHT ;
				if(playerMoving == false)
				{
					velocityX =  charSpeed;//later change to velocity if needed
					playerMoving = true;
				}
				else
				{//player is moving
					if(velocityX<0)
						velocityX = velocityX + friction *3;//the friction part allows it to change direction
					else if(velocityX > 0)
						velocityX = charSpeed;

				}
			}
			else if (kbd.LeftIsPressed() )
			{
				PlayerDirection = LEFT;
				if(playerMoving == false)
				{
					velocityX =  -charSpeed;//later change to velocity if needed
					playerMoving = true;
				}
				else
				{
					if( velocityX > 0)
						velocityX = velocityX - friction  *3 ;//the friction part allows it to change direction
					else if (velocityX < 0)
						velocityX = -charSpeed;
				}
				//
			}
			else
			{//if left or right is not pressed
				playerMoving = false;
				if(velocityX < 0)
				{//let friction oppose direction of travel
					velocityX = velocityX + friction*3;//add friction
					if(velocityX>0)//to prevent opposite direction velocity stop at 0
						velocityX = 0;
				}
				else if ( velocityX>0)
				{
					velocityX = velocityX - friction*3;//subtract friction
					if(velocityX<0)//to prevent opposite direction velocity stop at 0
						velocityX = 0;
				}
			}
		
		
	PlayerX = PlayerX + velocityX;
	
	//------------------------- END OF  moving mechanics-------------------------------
	 //--------------------- GRAVITY MECHANICS ----------------------------------------------
	if(kbd.XIsPressed() && SPlatform!= -1 && playerJumping ==false )// You must stand on a platform in order to jump
	//we added a debug condition in which the player fall into the hole
	{//implement delay for jumping something like cooldown
		velocityY = -5; // this is the jump strength
		playerJumping= true;
		SPlatform = -1; //since ur feet is not in contact time any platform
	}
	if(SPlatform == -1)//when platform is -1 is same as jumping? nope. Can be falling too so we have to classify
	{//if not standing on any platform u keep falling till u hit a platform
			if(playerJumping == true)
			{
				velocityY = velocityY + gravity;
				PlayerY = PlayerY + velocityY;
			}
			else
			{//just falling off the edge
				velocityY = velocityY + gravity;
				PlayerY = PlayerY + velocityY;
				playerJumping = false;
			}

			//Setting of platform that we land on
			for(int i = 0;i <noOfPlatform;i++)
			{
				if(PlayerY+40 >= pPlatform[i].top && PlayerY+40 <= pPlatform[i].bot && PlayerX>=pPlatform[i].left && PlayerX <= pPlatform[i].right)
				{
					PlayerY = pPlatform[i].top - 40;//set to standing on top
					SPlatform = i;
					playerJumping = false;
					velocityY = 0;//reset the velocity
				}
			}
			//End of platform checing
			
		
	}
	else
	{//if on platform set y velocity to 0
		//velocityY = 0;
		playerJumping = false;
		if(!(PlayerX>=pPlatform[SPlatform].left && PlayerX <= pPlatform[SPlatform].right)       )//if
			SPlatform = -1;//no longer on platform
	}

	//------------------END OF Gravity mechanics -------------------------------------
	//---------------------clipping to screen---------------------------------- 
	if(PlayerY >= MapHeight-40)
	{//debugging function reset position
			PlayerX = 200;//Spawn place of player
			PlayerY =  578-40;
			velocityX = 0;
			velocityY=0;
			PlayerHealth= PlayerHealth - 10;//decrease life lol lame
	}
	

	if(PlayerX<1)
		PlayerX = 1;//clip to the screen //need to refine this better
	if(PlayerX > MapWidth-36)
		PlayerX = MapWidth-36;
	if(PlayerY < 10)//y clipping is done in the drawplayerfunction also
		PlayerY = 10;
	if(PlayerY > MapHeight-40)
		PlayerY = MapHeight-40;
//--------------------------------------------end of screen CLIPPING----------------------------
	//check contact with any platform

}
void Game::ComposeFrame()
{
	if(!selectiondone)
	{
		//Selection();
		LoadMap(0);//0 is the mapID 
		charSpeed = speedofcharacter[selectedchar];//initialise selected charater speed accordingly
	}//selection screen only activated once
	else
	{//only either selection screen or running actual game
		//bottom is allocation and drawing of frame
		
		DrawToolBar();
		//std::cout<<"Running in proces"<<std::endl;
		UpdatePlayer();
		DrawGameScreen();
	
		
		if( mouse.RightIsPressed() )
		{
			std::cout<<"X:"<<mouse.GetMouseX()<<" Y:"<<mouse.GetMouseY()<<std::endl;
			//changing of friction bar
			if(mouse.GetMouseY() >= 507 && mouse.GetMouseY()<=539 && mouse.GetMouseX() >= 232 && mouse.GetMouseX() <= 542)
			{
				frictionc = float(mouse.GetMouseX() - 232) / float(542-232) *100.0; 
				friction = frictionc / 1000;//update actual in game friction
				//mouse.GetMouseX();
			}
			//End of update of  friction bar
			//changing of gravity bar
			if(mouse.GetMouseY() >= 565 && mouse.GetMouseY()<=596 && mouse.GetMouseX() >= 232 && mouse.GetMouseX() <= 542)
			{
				gravityc = float(mouse.GetMouseX() - 232) / float(542-232) *100.0; 
				gravity = gravityc / 1000;//update actual in game friction
				//mouse.GetMouseX();
			}
			//End of update of gravity bar
				//lose.Play( -1000 );
		}
	
	}
}